home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1998 January: Mac OS SDK / Dev.CD Jan 98 SDK1.toast / Development Kits (Disc 1) / Interfaces&Libraries / Universal / Interfaces / AIncludes / Quickdraw.a < prev    next >
Encoding:
Text File  |  1997-08-12  |  76.8 KB  |  2,742 lines  |  [TEXT/MPS ]

  1. ;
  2. ;    File:        Quickdraw.a
  3. ;
  4. ;    Contains:    Quickdraw Graphics Interfaces.
  5. ;
  6. ;    Version:    Technology:    System 7.5
  7. ;                Release:    Universal Interfaces 3.0.1
  8. ;
  9. ;    Copyright:    © 1985-1997 by Apple Computer, Inc., all rights reserved
  10. ;
  11. ;    Bugs?:        Please include the the file and version information (from above) with
  12. ;                the problem description.  Developers belonging to one of the Apple
  13. ;                developer programs can submit bug reports to:
  14. ;
  15. ;                    devsupport@apple.com
  16. ;
  17. ;
  18.     IF &TYPE('__QUICKDRAW__') = 'UNDEFINED' THEN
  19. __QUICKDRAW__ SET 1
  20.  
  21.     IF &TYPE('__TYPES__') = 'UNDEFINED' THEN
  22.     include 'Types.a'
  23.     ENDIF
  24.     IF &TYPE('__MIXEDMODE__') = 'UNDEFINED' THEN
  25.     include 'MixedMode.a'
  26.     ENDIF
  27.     IF &TYPE('__QUICKDRAWTEXT__') = 'UNDEFINED' THEN
  28.     include 'QuickdrawText.a'
  29.     ENDIF
  30.  
  31.  
  32. invalColReq                        EQU        -1                    ;invalid color table request
  33.                                                             ; transfer modes 
  34. srcCopy                            EQU        0                    ;the 16 transfer modes
  35. srcOr                            EQU        1
  36. srcXor                            EQU        2
  37. srcBic                            EQU        3
  38. notSrcCopy                        EQU        4
  39. notSrcOr                        EQU        5
  40. notSrcXor                        EQU        6
  41. notSrcBic                        EQU        7
  42. patCopy                            EQU        8
  43. patOr                            EQU        9
  44. patXor                            EQU        10
  45. patBic                            EQU        11
  46. notPatCopy                        EQU        12
  47. notPatOr                        EQU        13
  48. notPatXor                        EQU        14
  49. notPatBic                        EQU        15                    ; Special Text Transfer Mode 
  50. grayishTextOr                    EQU        49
  51. hilitetransfermode                EQU        50
  52. hilite                            EQU        50                    ; Arithmetic transfer modes 
  53. blend                            EQU        32
  54. addPin                            EQU        33
  55. addOver                            EQU        34
  56. subPin                            EQU        35
  57. addMax                            EQU        37
  58. adMax                            EQU        37
  59. subOver                            EQU        38
  60. adMin                            EQU        39
  61. ditherCopy                        EQU        64                    ; Transparent mode constant 
  62. transparent                        EQU        36
  63.  
  64. italicBit                        EQU        1
  65. ulineBit                        EQU        2
  66. outlineBit                        EQU        3
  67. shadowBit                        EQU        4
  68. condenseBit                        EQU        5
  69. extendBit                        EQU        6                    ; QuickDraw color separation constants 
  70. normalBit                        EQU        0                    ;normal screen mapping
  71. inverseBit                        EQU        1                    ;inverse screen mapping
  72. redBit                            EQU        4                    ;RGB additive mapping
  73. greenBit                        EQU        3
  74. blueBit                            EQU        2
  75. cyanBit                            EQU        8                    ;CMYBk subtractive mapping
  76. magentaBit                        EQU        7
  77. yellowBit                        EQU        6
  78. blackBit                        EQU        5
  79.  
  80. blackColor                        EQU        33                    ;colors expressed in these mappings
  81. whiteColor                        EQU        30
  82. redColor                        EQU        205
  83. greenColor                        EQU        341
  84. blueColor                        EQU        409
  85. cyanColor                        EQU        273
  86. magentaColor                    EQU        137
  87. yellowColor                        EQU        69
  88.  
  89. picLParen                        EQU        0                    ;standard picture comments
  90. picRParen                        EQU        1
  91. clutType                        EQU        0                    ;0 if lookup table
  92. fixedType                        EQU        1                    ;1 if fixed table
  93. directType                        EQU        2                    ;2 if direct values
  94. gdDevType                        EQU        0                    ;0 = monochrome 1 = color
  95.  
  96. interlacedDevice                EQU        2                    ; 1 if single pixel lines look bad 
  97. roundedDevice                    EQU        5                    ; 1 if device has been “rounded” into the GrayRgn 
  98. hasAuxMenuBar                    EQU        6                    ; 1 if device has an aux menu bar on it 
  99. burstDevice                        EQU        7
  100. ext32Device                        EQU        8
  101. ramInit                            EQU        10                    ;1 if initialized from 'scrn' resource
  102. mainScreen                        EQU        11                    ; 1 if main screen 
  103. allInit                            EQU        12                    ; 1 if all devices initialized 
  104. screenDevice                    EQU        13                    ;1 if screen device [not used]
  105. noDriver                        EQU        14                    ; 1 if no driver for this GDevice 
  106. screenActive                    EQU        15                    ;1 if in use
  107. hiliteBit                        EQU        7                    ;flag bit in HiliteMode (lowMem flag)
  108. pHiliteBit                        EQU        0                    ;flag bit in HiliteMode used with BitClr procedure
  109. defQDColors                        EQU        127                    ;resource ID of clut for default QDColors
  110.                                                             ; pixel type 
  111. RGBDirect                        EQU        16                    ; 16 & 32 bits/pixel pixelType value 
  112.                                                             ; pmVersion values 
  113. baseAddr32                        EQU        4                    ;pixmap base address is 32-bit address
  114.  
  115.  
  116. sysPatListID                    EQU        0
  117. iBeamCursor                        EQU        1
  118. crossCursor                        EQU        2
  119. plusCursor                        EQU        3
  120. watchCursor                        EQU        4
  121.  
  122. kQDGrafVerbFrame                EQU        0
  123. kQDGrafVerbPaint                EQU        1
  124. kQDGrafVerbErase                EQU        2
  125. kQDGrafVerbInvert                EQU        3
  126. kQDGrafVerbFill                    EQU        4
  127.     IF OLDROUTINENAMES THEN
  128.  
  129. frame                            EQU        0
  130. paint                            EQU        1
  131. erase                            EQU        2
  132. invert                            EQU        3
  133. fill                            EQU        4
  134.     ENDIF    ; OLDROUTINENAMES
  135. ; typedef SInt8                         GrafVerb
  136.  
  137.  
  138. chunky                            EQU        0
  139. chunkyPlanar                    EQU        1
  140. planar                            EQU        2
  141. ; typedef SInt8                         PixelType
  142.  
  143. Bits16                    RECORD 0
  144. elements                 ds.w    16
  145. sizeof                     EQU *                    ; size:   $20 (32)
  146.                         ENDR
  147.  
  148.  
  149.  
  150. ; ***************   IMPORTANT NOTE REGARDING Pattern  **************************************
  151. ;   Patterns were originally defined as:
  152. ;   
  153. ;        C:             typedef unsigned char Pattern[8];
  154. ;        Pascal:        Pattern = PACKED ARRAY [0..7] OF 0..255;
  155. ;        
  156. ;   The old array defintion of Pattern would cause 68000 based CPU's to crash in certain circum-
  157. ;   stances. The new struct definition is safe, but may require source code changes to compile.
  158. ;   Read the details in TechNote "Platforms & Tools" #PT 38.
  159. ;    
  160. ;********************************************************************************************
  161.  
  162. Pattern                    RECORD 0
  163. pat                         ds.b    8                ; offset: $0 (0)
  164. sizeof                     EQU *                    ; size:   $8 (8)
  165.                         ENDR
  166. ; ConstPatternParam is now longer needed.  It was first created when Pattern was an array.
  167. ; Now that Pattern is a struct, it is more straight forward just add the "const" qualifier
  168. ; on the parameter type (e.g. "const Pattern * pat" instead of "ConstPatternParam pat").
  169. ;
  170.  
  171. ; typedef struct Pattern *                PatPtr
  172.  
  173. ; typedef PatPtr *                        PatHandle
  174.  
  175. ; typedef short                         QDErr
  176.  
  177.  
  178. singleDevicesBit                EQU        0
  179. dontMatchSeedsBit                EQU        1
  180. allDevicesBit                    EQU        2
  181.  
  182. singleDevices                    EQU        $01
  183. dontMatchSeeds                    EQU        $02
  184. allDevices                        EQU        $04
  185. ; typedef unsigned long                 DeviceLoopFlags
  186.  
  187. BitMap                    RECORD 0
  188. baseAddr                 ds.l    1                ; offset: $0 (0)
  189. rowBytes                 ds.w    1                ; offset: $4 (4)
  190. bounds                     ds        Rect            ; offset: $6 (6)
  191. sizeof                     EQU *                    ; size:   $E (14)
  192.                         ENDR
  193. ; typedef struct BitMap *                BitMapPtr
  194.  
  195. ; typedef BitMapPtr *                    BitMapHandle
  196.  
  197. Cursor                    RECORD 0
  198. data                     ds        Bits16            ; offset: $0 (0)
  199. mask                     ds        Bits16            ; offset: $20 (32)
  200. hotSpot                     ds        Point            ; offset: $40 (64)
  201. sizeof                     EQU *                    ; size:   $44 (68)
  202.                         ENDR
  203. ; typedef struct Cursor *                CursPtr
  204.  
  205. ; typedef CursPtr *                        CursHandle
  206.  
  207. PenState                RECORD 0
  208. pnLoc                     ds        Point            ; offset: $0 (0)
  209. pnSize                     ds        Point            ; offset: $4 (4)
  210. pnMode                     ds.w    1                ; offset: $8 (8)
  211. pnPat                     ds        Pattern            ; offset: $A (10)
  212. sizeof                     EQU *                    ; size:   $12 (18)
  213.                         ENDR
  214. Region                    RECORD 0
  215. rgnSize                     ds.w    1                ; offset: $0 (0)        ; size in bytes
  216. rgnBBox                     ds        Rect            ; offset: $2 (2)        ; enclosing rectangle
  217. sizeof                     EQU *                    ; size:   $A (10)
  218.                         ENDR
  219. ; typedef struct Region *                RgnPtr
  220.  
  221. ; typedef RgnPtr *                        RgnHandle
  222.  
  223. Picture                    RECORD 0
  224. picSize                     ds.w    1                ; offset: $0 (0)
  225. picFrame                 ds        Rect            ; offset: $2 (2)
  226. sizeof                     EQU *                    ; size:   $A (10)
  227.                         ENDR
  228. ; typedef struct Picture *                PicPtr
  229.  
  230. ; typedef PicPtr *                        PicHandle
  231.  
  232. Polygon                    RECORD 0
  233. polySize                 ds.w    1                ; offset: $0 (0)
  234. polyBBox                 ds        Rect            ; offset: $2 (2)
  235. polyPoints                 ds        Point            ; offset: $A (10) <-- really an array of length one
  236. sizeof                     EQU *                    ; size:   $E (14)
  237.                         ENDR
  238. ; typedef struct Polygon *                PolyPtr
  239.  
  240. ; typedef PolyPtr *                        PolyHandle
  241.  
  242. QDProcs                    RECORD 0
  243. textProc                 ds.l    1                ; offset: $0 (0)
  244. lineProc                 ds.l    1                ; offset: $4 (4)
  245. rectProc                 ds.l    1                ; offset: $8 (8)
  246. rRectProc                 ds.l    1                ; offset: $C (12)
  247. ovalProc                 ds.l    1                ; offset: $10 (16)
  248. arcProc                     ds.l    1                ; offset: $14 (20)
  249. polyProc                 ds.l    1                ; offset: $18 (24)
  250. rgnProc                     ds.l    1                ; offset: $1C (28)
  251. bitsProc                 ds.l    1                ; offset: $20 (32)
  252. commentProc                 ds.l    1                ; offset: $24 (36)
  253. txMeasProc                 ds.l    1                ; offset: $28 (40)
  254. getPicProc                 ds.l    1                ; offset: $2C (44)
  255. putPicProc                 ds.l    1                ; offset: $30 (48)
  256. sizeof                     EQU *                    ; size:   $34 (52)
  257.                         ENDR
  258. ; typedef struct QDProcs *                QDProcsPtr
  259.  
  260.  
  261.  
  262. GrafPort                RECORD 0
  263. device                     ds.w    1                ; offset: $0 (0)
  264. portBits                 ds        BitMap            ; offset: $2 (2)
  265. portRect                 ds        Rect            ; offset: $10 (16)
  266. visRgn                     ds.l    1                ; offset: $18 (24)
  267. clipRgn                     ds.l    1                ; offset: $1C (28)
  268. bkPat                     ds        Pattern            ; offset: $20 (32)
  269. fillPat                     ds        Pattern            ; offset: $28 (40)
  270. pnLoc                     ds        Point            ; offset: $30 (48)
  271. pnSize                     ds        Point            ; offset: $34 (52)
  272. pnMode                     ds.w    1                ; offset: $38 (56)
  273. pnPat                     ds        Pattern            ; offset: $3A (58)
  274. pnVis                     ds.w    1                ; offset: $42 (66)
  275. txFont                     ds.w    1                ; offset: $44 (68)
  276. txFace                     ds.w    1                ; offset: $46 (70)        ; StyleField occupies 16-bits, but only first 8-bits are used
  277. txMode                     ds.w    1                ; offset: $48 (72)
  278. txSize                     ds.w    1                ; offset: $4A (74)
  279. spExtra                     ds.l    1                ; offset: $4C (76)
  280. fgColor                     ds.l    1                ; offset: $50 (80)
  281. bkColor                     ds.l    1                ; offset: $54 (84)
  282. colrBit                     ds.w    1                ; offset: $58 (88)
  283. patStretch                 ds.w    1                ; offset: $5A (90)
  284. picSave                     ds.l    1                ; offset: $5C (92)
  285. rgnSave                     ds.l    1                ; offset: $60 (96)
  286. polySave                 ds.l    1                ; offset: $64 (100)
  287. grafProcs                 ds.l    1                ; offset: $68 (104)
  288. sizeof                     EQU *                    ; size:   $6C (108)
  289.                         ENDR
  290. ; typedef struct GrafPort *                GrafPtr
  291.  
  292.  
  293. ; *    This set of definitions "belongs" in Windows.
  294. ; *    But, there is a circularity in the headers where Windows includes Controls and
  295. ; *    Controls includes Windows. To break the circle, the information
  296. ; *    needed by Controls is moved from Windows to Quickdraw.
  297.  
  298. ; typedef GrafPtr                         WindowPtr
  299.  
  300. ; typedef WindowPtr                     DialogPtr
  301.  
  302. ; typedef WindowPtr                     WindowRef
  303.  
  304. ;  DragConstraint constants to pass to DragGray,DragTheRgn, or ConstrainedDragRgn
  305. ; typedef UInt16                         DragConstraint
  306.  
  307.  
  308. kNoConstraint                    EQU        0
  309. kVerticalConstraint                EQU        1
  310. kHorizontalConstraint            EQU        2
  311.  
  312. ; *    Here ends the list of things that "belong" in Windows.
  313.  
  314.  
  315.  
  316. RGBColor                RECORD 0
  317. red                         ds.w    1                ; offset: $0 (0)        ; magnitude of red component
  318. green                     ds.w    1                ; offset: $2 (2)        ; magnitude of green component
  319. blue                     ds.w    1                ; offset: $4 (4)        ; magnitude of blue component
  320. sizeof                     EQU *                    ; size:   $6 (6)
  321.                         ENDR
  322. ; typedef struct RGBColor *                RGBColorPtr
  323.  
  324. ; typedef RGBColorPtr *                    RGBColorHdl
  325.  
  326. ColorSpec                RECORD 0
  327. value                     ds.w    1                ; offset: $0 (0)        ; index or other value
  328. rgb                         ds        RGBColor        ; offset: $2 (2)        ; true color
  329. sizeof                     EQU *                    ; size:   $8 (8)
  330.                         ENDR
  331. ; typedef struct ColorSpec *            ColorSpecPtr
  332.  
  333. CSpecArray                RECORD 0
  334. elements                 ds.b    1 * ColorSpec.sizeof
  335. sizeof                     EQU *                    ; size:   $8 (8)
  336.                         ENDR
  337.  
  338.  
  339. ColorTable                RECORD 0
  340. ctSeed                     ds.l    1                ; offset: $0 (0)        ; unique identifier for table
  341. ctFlags                     ds.w    1                ; offset: $4 (4)        ; high bit: 0 = PixMap; 1 = device
  342. ctSize                     ds.w    1                ; offset: $6 (6)        ; number of entries in CTTable
  343. ctTable                     ds        CSpecArray        ; offset: $8 (8)        ; array [0..0] of ColorSpec
  344. sizeof                     EQU *                    ; size:   $10 (16)
  345.                         ENDR
  346. ; typedef struct ColorTable *            CTabPtr
  347.  
  348. ; typedef CTabPtr *                        CTabHandle
  349.  
  350. xColorSpec                RECORD 0
  351. value                     ds.w    1                ; offset: $0 (0)        ; index or other value
  352. rgb                         ds        RGBColor        ; offset: $2 (2)        ; true color
  353. xalpha                     ds.w    1                ; offset: $8 (8)
  354. sizeof                     EQU *                    ; size:   $A (10)
  355.                         ENDR
  356. ; typedef struct xColorSpec *            xColorSpecPtr
  357.  
  358. xCSpecArray                RECORD 0
  359. elements                 ds.b    1 * xColorSpec.sizeof
  360. sizeof                     EQU *                    ; size:   $A (10)
  361.                         ENDR
  362.  
  363.  
  364. MatchRec                RECORD 0
  365. red                         ds.w    1                ; offset: $0 (0)
  366. green                     ds.w    1                ; offset: $2 (2)
  367. blue                     ds.w    1                ; offset: $4 (4)
  368. matchData                 ds.l    1                ; offset: $6 (6)
  369. sizeof                     EQU *                    ; size:   $A (10)
  370.                         ENDR
  371. PixMap                    RECORD 0
  372. baseAddr                 ds.l    1                ; offset: $0 (0)        ; pointer to pixels
  373. rowBytes                 ds.w    1                ; offset: $4 (4)        ; offset to next line
  374. bounds                     ds        Rect            ; offset: $6 (6)        ; encloses bitmap
  375. pmVersion                 ds.w    1                ; offset: $E (14)        ; pixMap version number
  376. packType                 ds.w    1                ; offset: $10 (16)        ; defines packing format
  377. packSize                 ds.l    1                ; offset: $12 (18)        ; length of pixel data
  378. hRes                     ds.l    1                ; offset: $16 (22)        ; horiz. resolution (ppi)
  379. vRes                     ds.l    1                ; offset: $1A (26)        ; vert. resolution (ppi)
  380. pixelType                 ds.w    1                ; offset: $1E (30)        ; defines pixel type
  381. pixelSize                 ds.w    1                ; offset: $20 (32)        ; # bits in pixel
  382. cmpCount                 ds.w    1                ; offset: $22 (34)        ; # components in pixel
  383. cmpSize                     ds.w    1                ; offset: $24 (36)        ; # bits per component
  384. planeBytes                 ds.l    1                ; offset: $26 (38)        ; offset to next plane
  385. pmTable                     ds.l    1                ; offset: $2A (42)        ; color map for this pixMap
  386. pmReserved                 ds.l    1                ; offset: $2E (46)        ; for future use. MUST BE 0
  387. sizeof                     EQU *                    ; size:   $32 (50)
  388.                         ENDR
  389. ; typedef struct PixMap *                PixMapPtr
  390.  
  391. ; typedef PixMapPtr *                    PixMapHandle
  392.  
  393. PixPat                    RECORD 0
  394. patType                     ds.w    1                ; offset: $0 (0)        ; type of pattern
  395. patMap                     ds.l    1                ; offset: $2 (2)        ; the pattern's pixMap
  396. patData                     ds.l    1                ; offset: $6 (6)        ; pixmap's data
  397. patXData                 ds.l    1                ; offset: $A (10)        ; expanded Pattern data
  398. patXValid                 ds.w    1                ; offset: $E (14)        ; flags whether expanded Pattern valid
  399. patXMap                     ds.l    1                ; offset: $10 (16)        ; Handle to expanded Pattern data
  400. pat1Data                 ds        Pattern            ; offset: $14 (20)        ; old-Style pattern/RGB color
  401. sizeof                     EQU *                    ; size:   $1C (28)
  402.                         ENDR
  403. ; typedef struct PixPat *                PixPatPtr
  404.  
  405. ; typedef PixPatPtr *                    PixPatHandle
  406.  
  407. CCrsr                    RECORD 0
  408. crsrType                 ds.w    1                ; offset: $0 (0)        ; type of cursor
  409. crsrMap                     ds.l    1                ; offset: $2 (2)        ; the cursor's pixmap
  410. crsrData                 ds.l    1                ; offset: $6 (6)        ; cursor's data
  411. crsrXData                 ds.l    1                ; offset: $A (10)        ; expanded cursor data
  412. crsrXValid                 ds.w    1                ; offset: $E (14)        ; depth of expanded data (0 if none)
  413. crsrXHandle                 ds.l    1                ; offset: $10 (16)        ; future use
  414. crsr1Data                 ds        Bits16            ; offset: $14 (20)        ; one-bit cursor
  415. crsrMask                 ds        Bits16            ; offset: $34 (52)        ; cursor's mask
  416. crsrHotSpot                 ds        Point            ; offset: $54 (84)        ; cursor's hotspot
  417. crsrXTable                 ds.l    1                ; offset: $58 (88)        ; private
  418. crsrID                     ds.l    1                ; offset: $5C (92)        ; private
  419. sizeof                     EQU *                    ; size:   $60 (96)
  420.                         ENDR
  421. ; typedef struct CCrsr *                CCrsrPtr
  422.  
  423. ; typedef CCrsrPtr *                    CCrsrHandle
  424.  
  425.     IF OLDROUTINELOCATIONS THEN
  426. CIcon                    RECORD 0
  427. iconPMap                 ds        PixMap            ; offset: $0 (0)        ; the icon's pixMap
  428. iconMask                 ds        BitMap            ; offset: $32 (50)        ; the icon's mask
  429. iconBMap                 ds        BitMap            ; offset: $40 (64)        ; the icon's bitMap
  430. iconData                 ds.l    1                ; offset: $4E (78)        ; the icon's data
  431. iconMaskData             ds.w    1                ; offset: $52 (82) <-- really an array of length one ; icon's mask and BitMap data
  432. sizeof                     EQU *                    ; size:   $54 (84)
  433.                         ENDR
  434. ; typedef struct CIcon *                CIconPtr
  435.  
  436. ; typedef CIconPtr *                    CIconHandle
  437.  
  438.     ENDIF    ; OLDROUTINELOCATIONS
  439. GammaTbl                RECORD 0
  440. gVersion                 ds.w    1                ; offset: $0 (0)        ; gamma version number
  441. gType                     ds.w    1                ; offset: $2 (2)        ; gamma data type
  442. gFormulaSize             ds.w    1                ; offset: $4 (4)        ; Formula data size
  443. gChanCnt                 ds.w    1                ; offset: $6 (6)        ; number of channels of data
  444. gDataCnt                 ds.w    1                ; offset: $8 (8)        ; number of values/channel
  445. gDataWidth                 ds.w    1                ; offset: $A (10)        ; bits/corrected value (data packed to next larger byte size)
  446. gFormulaData             ds.w    1                ; offset: $C (12) <-- really an array of length one ; data for formulas followed by gamma values
  447. sizeof                     EQU *                    ; size:   $E (14)
  448.                         ENDR
  449. ; typedef struct GammaTbl *                GammaTblPtr
  450.  
  451. ; typedef GammaTblPtr *                    GammaTblHandle
  452.  
  453. ITab                    RECORD 0
  454. iTabSeed                 ds.l    1                ; offset: $0 (0)        ; copy of CTSeed from source CTable
  455. iTabRes                     ds.w    1                ; offset: $4 (4)        ; bits/channel resolution of iTable
  456. iTTable                     ds.b    1                ; offset: $6 (6) <-- really an array of length one ; byte colortable index values
  457.                          ORG 8
  458. sizeof                     EQU *                    ; size:   $8 (8)
  459.                         ENDR
  460. ; typedef struct ITab *                    ITabPtr
  461.  
  462. ; typedef ITabPtr *                        ITabHandle
  463.  
  464. SProcRec                RECORD 0
  465. nxtSrch                     ds.l    1                ; offset: $0 (0)        ; SProcHndl Handle to next SProcRec
  466. srchProc                 ds.l    1                ; offset: $4 (4)        ; search procedure proc ptr
  467. sizeof                     EQU *                    ; size:   $8 (8)
  468.                         ENDR
  469. ; typedef struct SProcRec *                SProcPtr
  470.  
  471. ; typedef SProcPtr *                    SProcHndl
  472.  
  473. CProcRec                RECORD 0
  474. nxtComp                     ds.l    1                ; offset: $0 (0)        ; CProcHndl Handle to next CProcRec
  475. compProc                 ds.l    1                ; offset: $4 (4)        ; complement procedure proc ptr
  476. sizeof                     EQU *                    ; size:   $8 (8)
  477.                         ENDR
  478. ; typedef struct CProcRec *                CProcPtr
  479.  
  480. ; typedef CProcPtr *                    CProcHndl
  481.  
  482. GDevice                    RECORD 0
  483. gdRefNum                 ds.w    1                ; offset: $0 (0)        ; driver's unit number
  484. gdID                     ds.w    1                ; offset: $2 (2)        ; client ID for search procs
  485. gdType                     ds.w    1                ; offset: $4 (4)        ; fixed/CLUT/direct
  486. gdITable                 ds.l    1                ; offset: $6 (6)        ; Handle to inverse lookup table
  487. gdResPref                 ds.w    1                ; offset: $A (10)        ; preferred resolution of GDITable
  488. gdSearchProc             ds.l    1                ; offset: $C (12)        ; search proc list head
  489. gdCompProc                 ds.l    1                ; offset: $10 (16)        ; complement proc list
  490. gdFlags                     ds.w    1                ; offset: $14 (20)        ; grafDevice flags word
  491. gdPMap                     ds.l    1                ; offset: $16 (22)        ; describing pixMap
  492. gdRefCon                 ds.l    1                ; offset: $1A (26)        ; reference value
  493. gdNextGD                 ds.l    1                ; offset: $1E (30)        ; GDHandle Handle of next gDevice
  494. gdRect                     ds        Rect            ; offset: $22 (34)        ;  device's bounds in global coordinates
  495. gdMode                     ds.l    1                ; offset: $2A (42)        ; device's current mode
  496. gdCCBytes                 ds.w    1                ; offset: $2E (46)        ; depth of expanded cursor data
  497. gdCCDepth                 ds.w    1                ; offset: $30 (48)        ; depth of expanded cursor data
  498. gdCCXData                 ds.l    1                ; offset: $32 (50)        ; Handle to cursor's expanded data
  499. gdCCXMask                 ds.l    1                ; offset: $36 (54)        ; Handle to cursor's expanded mask
  500. gdReserved                 ds.l    1                ; offset: $3A (58)        ; future use. MUST BE 0
  501. sizeof                     EQU *                    ; size:   $3E (62)
  502.                         ENDR
  503. ; typedef struct GDevice *                GDPtr
  504.  
  505. ; typedef GDPtr *                        GDHandle
  506.  
  507. GrafVars                RECORD 0
  508. rgbOpColor                 ds        RGBColor        ; offset: $0 (0)        ; color for addPin  subPin and average
  509. rgbHiliteColor             ds        RGBColor        ; offset: $6 (6)        ; color for hiliting
  510. pmFgColor                 ds.l    1                ; offset: $C (12)        ; palette Handle for foreground color
  511. pmFgIndex                 ds.w    1                ; offset: $10 (16)        ; index value for foreground
  512. pmBkColor                 ds.l    1                ; offset: $12 (18)        ; palette Handle for background color
  513. pmBkIndex                 ds.w    1                ; offset: $16 (22)        ; index value for background
  514. pmFlags                     ds.w    1                ; offset: $18 (24)        ; flags for Palette Manager
  515. sizeof                     EQU *                    ; size:   $1A (26)
  516.                         ENDR
  517. ; typedef struct GrafVars *                GVarPtr
  518.  
  519. ; typedef GVarPtr *                        GVarHandle
  520.  
  521. CQDProcs                RECORD 0
  522. textProc                 ds.l    1                ; offset: $0 (0)
  523. lineProc                 ds.l    1                ; offset: $4 (4)
  524. rectProc                 ds.l    1                ; offset: $8 (8)
  525. rRectProc                 ds.l    1                ; offset: $C (12)
  526. ovalProc                 ds.l    1                ; offset: $10 (16)
  527. arcProc                     ds.l    1                ; offset: $14 (20)
  528. polyProc                 ds.l    1                ; offset: $18 (24)
  529. rgnProc                     ds.l    1                ; offset: $1C (28)
  530. bitsProc                 ds.l    1                ; offset: $20 (32)
  531. commentProc                 ds.l    1                ; offset: $24 (36)
  532. txMeasProc                 ds.l    1                ; offset: $28 (40)
  533. getPicProc                 ds.l    1                ; offset: $2C (44)
  534. putPicProc                 ds.l    1                ; offset: $30 (48)
  535. opcodeProc                 ds.l    1                ; offset: $34 (52)        ; fields added to QDProcs
  536. newProc1                 ds.l    1                ; offset: $38 (56)
  537. newProc2                 ds.l    1                ; offset: $3C (60)
  538. newProc3                 ds.l    1                ; offset: $40 (64)
  539. newProc4                 ds.l    1                ; offset: $44 (68)
  540. newProc5                 ds.l    1                ; offset: $48 (72)
  541. newProc6                 ds.l    1                ; offset: $4C (76)
  542. sizeof                     EQU *                    ; size:   $50 (80)
  543.                         ENDR
  544. ; typedef struct CQDProcs *                CQDProcsPtr
  545.  
  546. CGrafPort                RECORD 0
  547. device                     ds.w    1                ; offset: $0 (0)
  548. portPixMap                 ds.l    1                ; offset: $2 (2)        ; port's pixel map
  549. portVersion                 ds.w    1                ; offset: $6 (6)        ; high 2 bits always set
  550. grafVars                 ds.l    1                ; offset: $8 (8)        ; Handle to more fields
  551. chExtra                     ds.w    1                ; offset: $C (12)        ; character extra
  552. pnLocHFrac                 ds.w    1                ; offset: $E (14)        ; pen fraction
  553. portRect                 ds        Rect            ; offset: $10 (16)
  554. visRgn                     ds.l    1                ; offset: $18 (24)
  555. clipRgn                     ds.l    1                ; offset: $1C (28)
  556. bkPixPat                 ds.l    1                ; offset: $20 (32)        ; background pattern
  557. rgbFgColor                 ds        RGBColor        ; offset: $24 (36)        ; RGB components of fg
  558. rgbBkColor                 ds        RGBColor        ; offset: $2A (42)        ; RGB components of bk
  559. pnLoc                     ds        Point            ; offset: $30 (48)
  560. pnSize                     ds        Point            ; offset: $34 (52)
  561. pnMode                     ds.w    1                ; offset: $38 (56)
  562. pnPixPat                 ds.l    1                ; offset: $3A (58)        ; pen's pattern
  563. fillPixPat                 ds.l    1                ; offset: $3E (62)        ; fill pattern
  564. pnVis                     ds.w    1                ; offset: $42 (66)
  565. txFont                     ds.w    1                ; offset: $44 (68)
  566. txFace                     ds.w    1                ; offset: $46 (70)        ; StyleField occupies 16-bits, but only first 8-bits are used
  567. txMode                     ds.w    1                ; offset: $48 (72)
  568. txSize                     ds.w    1                ; offset: $4A (74)
  569. spExtra                     ds.l    1                ; offset: $4C (76)
  570. fgColor                     ds.l    1                ; offset: $50 (80)
  571. bkColor                     ds.l    1                ; offset: $54 (84)
  572. colrBit                     ds.w    1                ; offset: $58 (88)
  573. patStretch                 ds.w    1                ; offset: $5A (90)
  574. picSave                     ds.l    1                ; offset: $5C (92)
  575. rgnSave                     ds.l    1                ; offset: $60 (96)
  576. polySave                 ds.l    1                ; offset: $64 (100)
  577. grafProcs                 ds.l    1                ; offset: $68 (104)
  578. sizeof                     EQU *                    ; size:   $6C (108)
  579.                         ENDR
  580. ; typedef struct CGrafPort *            CGrafPtr
  581.  
  582. ; typedef CGrafPtr                         CWindowPtr
  583.  
  584. ReqListRec                RECORD 0
  585. reqLSize                 ds.w    1                ; offset: $0 (0)        ; request list size
  586. reqLData                 ds.w    1                ; offset: $2 (2) <-- really an array of length one ; request list data
  587. sizeof                     EQU *                    ; size:   $4 (4)
  588.                         ENDR
  589. OpenCPicParams            RECORD 0
  590. srcRect                     ds        Rect            ; offset: $0 (0)
  591. hRes                     ds.l    1                ; offset: $8 (8)
  592. vRes                     ds.l    1                ; offset: $C (12)
  593. version                     ds.w    1                ; offset: $10 (16)
  594. reserved1                 ds.w    1                ; offset: $12 (18)
  595. reserved2                 ds.l    1                ; offset: $14 (20)
  596. sizeof                     EQU *                    ; size:   $18 (24)
  597.                         ENDR
  598.  
  599. kCursorImageMajorVersion        EQU        $0001
  600. kCursorImageMinorVersion        EQU        $0000
  601. CursorImageRec            RECORD 0
  602. majorVersion             ds.w    1                ; offset: $0 (0)
  603. minorVersion             ds.w    1                ; offset: $2 (2)
  604. cursorPixMap             ds.l    1                ; offset: $4 (4)
  605. cursorBitMask             ds.l    1                ; offset: $8 (8)
  606. sizeof                     EQU *                    ; size:   $C (12)
  607.                         ENDR
  608. ; typedef struct CursorImageRec *        CursorImagePtr
  609.  
  610. QDGlobals                RECORD 0
  611. privates                 ds.b    76                ; offset: $0 (0)
  612. randSeed                 ds.l    1                ; offset: $4C (76)
  613. screenBits                 ds        BitMap            ; offset: $50 (80)
  614. arrow                     ds        Cursor            ; offset: $5E (94)
  615. dkGray                     ds        Pattern            ; offset: $A2 (162)
  616. ltGray                     ds        Pattern            ; offset: $AA (170)
  617. gray                     ds        Pattern            ; offset: $B2 (178)
  618. black                     ds        Pattern            ; offset: $BA (186)
  619. white                     ds        Pattern            ; offset: $C2 (194)
  620. thePort                     ds.l    1                ; offset: $CA (202)
  621. sizeof                     EQU *                    ; size:   $CE (206)
  622.                         ENDR
  623. ; typedef struct QDGlobals *            QDGlobalsPtr
  624.  
  625. ; typedef QDGlobalsPtr *                QDGlobalsHdl
  626.  
  627.  
  628. ;    Often code written in assembly language is compiled outside of an
  629. ;    application environment.  In such cases, the Quickdraw globals
  630. ;    cannot be access normally (e.g. qd.black).  This kind of code (e.g.
  631. ;    INIT's) usually leaches off the currently install Quickdraw globals
  632. ;    by knowing that 0(a5) points to qd.thePort, as set by InitGraf().
  633. ;    
  634. ;    The record CurrentQDGlobals is defined for use in such circumstances.
  635. ;    It is biased so that thePort is at offset 0.  Below is an example
  636. ;    of using CurrentQDGlobals vs. the old assembly style:
  637. ;    
  638. ;    ; Get address of Quickdraw global's black into A0
  639. ;    
  640. ;        Old non-app way:
  641. ;                MOVE.L    0(A5),A0
  642. ;                LEA        black(A0),A0    ; black was EQU'ed to -16 in QuickEqu.a 
  643. ;    
  644. ;        New non-app way:
  645. ;                MOVE.L    0(A5),A0
  646. ;                LEA        CurrentQDGlobals.black(A0),A0
  647. ;    
  648. ;        New app way:
  649. ;                LEA        qd.black,A0        ; elsewhere: qd  DS    QDGlobals
  650.  
  651. CurrentQDGlobals         RECORD    {thePort},INCREMENT
  652. privates                 ds.b   76        ; offset: $FF36 (-202)
  653. randSeed                 ds.l   1        ; offset: $FF82 (-126)
  654. screenBits                 ds     BitMap    ; offset: $FF86 (-122)
  655. arrow                     ds     Cursor    ; offset: $FF94 (-108)
  656. dkGray                     ds     Pattern    ; offset: $FFD8 (-40)
  657. ltGray                     ds     Pattern    ; offset: $FFE0 (-32)
  658. gray                     ds     Pattern    ; offset: $FFE8 (-24)
  659. black                     ds     Pattern    ; offset: $FFF0 (-16)
  660. white                     ds     Pattern    ; offset: $FFF8 (-8)
  661. thePort                  ds.l   1        ; offset: $0000 (0)
  662. sizeof                     EQU    *-CurrentQDGlobals        ; size:   $CE   (206)
  663.                         ENDR
  664.  
  665.  
  666. GrafGlobals       EQU         0                         ; A5 offset to globptr
  667.  
  668.  
  669.  
  670. ;
  671. ; pascal void InitGraf(void *globalPtr)
  672. ;
  673.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  674.         _InitGraf:    OPWORD    $A86E
  675.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  676.         IMPORT_CFM_FUNCTION InitGraf
  677.     ENDIF
  678.  
  679. ;
  680. ; pascal void OpenPort(GrafPtr port)
  681. ;
  682.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  683.         _OpenPort:    OPWORD    $A86F
  684.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  685.         IMPORT_CFM_FUNCTION OpenPort
  686.     ENDIF
  687.  
  688. ;
  689. ; pascal void InitPort(GrafPtr port)
  690. ;
  691.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  692.         _InitPort:    OPWORD    $A86D
  693.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  694.         IMPORT_CFM_FUNCTION InitPort
  695.     ENDIF
  696.  
  697. ;
  698. ; pascal void ClosePort(GrafPtr port)
  699. ;
  700.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  701.         _ClosePort:    OPWORD    $A87D
  702.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  703.         IMPORT_CFM_FUNCTION ClosePort
  704.     ENDIF
  705.  
  706. ;
  707. ; pascal void SetPort(GrafPtr port)
  708. ;
  709.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  710.         _SetPort:    OPWORD    $A873
  711.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  712.         IMPORT_CFM_FUNCTION SetPort
  713.     ENDIF
  714.  
  715. ;
  716. ; pascal void GetPort(GrafPtr *port)
  717. ;
  718.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  719.         _GetPort:    OPWORD    $A874
  720.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  721.         IMPORT_CFM_FUNCTION GetPort
  722.     ENDIF
  723.  
  724. ;
  725. ; pascal void GrafDevice(short device)
  726. ;
  727.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  728.         _GrafDevice:    OPWORD    $A872
  729.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  730.         IMPORT_CFM_FUNCTION GrafDevice
  731.     ENDIF
  732.  
  733. ;
  734. ; pascal void SetPortBits(const BitMap *bm)
  735. ;
  736.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  737.         _SetPortBits:    OPWORD    $A875
  738.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  739.         IMPORT_CFM_FUNCTION SetPortBits
  740.     ENDIF
  741.  
  742. ;
  743. ; pascal void PortSize(short width, short height)
  744. ;
  745.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  746.         _PortSize:    OPWORD    $A876
  747.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  748.         IMPORT_CFM_FUNCTION PortSize
  749.     ENDIF
  750.  
  751. ;
  752. ; pascal void MovePortTo(short leftGlobal, short topGlobal)
  753. ;
  754.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  755.         _MovePortTo:    OPWORD    $A877
  756.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  757.         IMPORT_CFM_FUNCTION MovePortTo
  758.     ENDIF
  759.  
  760. ;
  761. ; pascal void SetOrigin(short h, short v)
  762. ;
  763.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  764.         _SetOrigin:    OPWORD    $A878
  765.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  766.         IMPORT_CFM_FUNCTION SetOrigin
  767.     ENDIF
  768.  
  769. ;
  770. ; pascal void SetClip(RgnHandle rgn)
  771. ;
  772.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  773.         _SetClip:    OPWORD    $A879
  774.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  775.         IMPORT_CFM_FUNCTION SetClip
  776.     ENDIF
  777.  
  778. ;
  779. ; pascal void GetClip(RgnHandle rgn)
  780. ;
  781.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  782.         _GetClip:    OPWORD    $A87A
  783.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  784.         IMPORT_CFM_FUNCTION GetClip
  785.     ENDIF
  786.  
  787. ;
  788. ; pascal void ClipRect(const Rect *r)
  789. ;
  790.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  791.         _ClipRect:    OPWORD    $A87B
  792.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  793.         IMPORT_CFM_FUNCTION ClipRect
  794.     ENDIF
  795.  
  796. ;
  797. ; pascal void BackPat(const Pattern *pat)
  798. ;
  799.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  800.         _BackPat:    OPWORD    $A87C
  801.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  802.         IMPORT_CFM_FUNCTION BackPat
  803.     ENDIF
  804.  
  805. ;
  806. ; pascal void InitCursor(void )
  807. ;
  808.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  809.         _InitCursor:    OPWORD    $A850
  810.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  811.         IMPORT_CFM_FUNCTION InitCursor
  812.     ENDIF
  813.  
  814. ;
  815. ; pascal void SetCursor(const Cursor *crsr)
  816. ;
  817.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  818.         _SetCursor:    OPWORD    $A851
  819.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  820.         IMPORT_CFM_FUNCTION SetCursor
  821.     ENDIF
  822.  
  823. ;
  824. ; pascal void HideCursor(void )
  825. ;
  826.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  827.         _HideCursor:    OPWORD    $A852
  828.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  829.         IMPORT_CFM_FUNCTION HideCursor
  830.     ENDIF
  831.  
  832. ;
  833. ; pascal void ShowCursor(void )
  834. ;
  835.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  836.         _ShowCursor:    OPWORD    $A853
  837.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  838.         IMPORT_CFM_FUNCTION ShowCursor
  839.     ENDIF
  840.  
  841. ;
  842. ; pascal void ObscureCursor(void )
  843. ;
  844.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  845.         _ObscureCursor:    OPWORD    $A856
  846.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  847.         IMPORT_CFM_FUNCTION ObscureCursor
  848.     ENDIF
  849.  
  850. ;
  851. ; pascal void HidePen(void )
  852. ;
  853.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  854.         _HidePen:    OPWORD    $A896
  855.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  856.         IMPORT_CFM_FUNCTION HidePen
  857.     ENDIF
  858.  
  859. ;
  860. ; pascal void ShowPen(void )
  861. ;
  862.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  863.         _ShowPen:    OPWORD    $A897
  864.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  865.         IMPORT_CFM_FUNCTION ShowPen
  866.     ENDIF
  867.  
  868. ;
  869. ; pascal void GetPen(Point *pt)
  870. ;
  871.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  872.         _GetPen:    OPWORD    $A89A
  873.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  874.         IMPORT_CFM_FUNCTION GetPen
  875.     ENDIF
  876.  
  877. ;
  878. ; pascal void GetPenState(PenState *pnState)
  879. ;
  880.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  881.         _GetPenState:    OPWORD    $A898
  882.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  883.         IMPORT_CFM_FUNCTION GetPenState
  884.     ENDIF
  885.  
  886. ;
  887. ; pascal void SetPenState(const PenState *pnState)
  888. ;
  889.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  890.         _SetPenState:    OPWORD    $A899
  891.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  892.         IMPORT_CFM_FUNCTION SetPenState
  893.     ENDIF
  894.  
  895. ;
  896. ; pascal void PenSize(short width, short height)
  897. ;
  898.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  899.         _PenSize:    OPWORD    $A89B
  900.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  901.         IMPORT_CFM_FUNCTION PenSize
  902.     ENDIF
  903.  
  904. ;
  905. ; pascal void PenMode(short mode)
  906. ;
  907.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  908.         _PenMode:    OPWORD    $A89C
  909.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  910.         IMPORT_CFM_FUNCTION PenMode
  911.     ENDIF
  912.  
  913. ;
  914. ; pascal void PenPat(const Pattern *pat)
  915. ;
  916.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  917.         _PenPat:    OPWORD    $A89D
  918.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  919.         IMPORT_CFM_FUNCTION PenPat
  920.     ENDIF
  921.  
  922. ;
  923. ; pascal void PenNormal(void )
  924. ;
  925.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  926.         _PenNormal:    OPWORD    $A89E
  927.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  928.         IMPORT_CFM_FUNCTION PenNormal
  929.     ENDIF
  930.  
  931. ;
  932. ; pascal void MoveTo(short h, short v)
  933. ;
  934.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  935.         _MoveTo:    OPWORD    $A893
  936.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  937.         IMPORT_CFM_FUNCTION MoveTo
  938.     ENDIF
  939.  
  940. ;
  941. ; pascal void Move(short dh, short dv)
  942. ;
  943.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  944.         _Move:    OPWORD    $A894
  945.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  946.         IMPORT_CFM_FUNCTION Move
  947.     ENDIF
  948.  
  949. ;
  950. ; pascal void LineTo(short h, short v)
  951. ;
  952.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  953.         _LineTo:    OPWORD    $A891
  954.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  955.         IMPORT_CFM_FUNCTION LineTo
  956.     ENDIF
  957.  
  958. ;
  959. ; pascal void Line(short dh, short dv)
  960. ;
  961.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  962.         _Line:    OPWORD    $A892
  963.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  964.         IMPORT_CFM_FUNCTION Line
  965.     ENDIF
  966.  
  967. ;
  968. ; pascal void ForeColor(long color)
  969. ;
  970.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  971.         _ForeColor:    OPWORD    $A862
  972.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  973.         IMPORT_CFM_FUNCTION ForeColor
  974.     ENDIF
  975.  
  976. ;
  977. ; pascal void BackColor(long color)
  978. ;
  979.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  980.         _BackColor:    OPWORD    $A863
  981.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  982.         IMPORT_CFM_FUNCTION BackColor
  983.     ENDIF
  984.  
  985. ;
  986. ; pascal void ColorBit(short whichBit)
  987. ;
  988.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  989.         _ColorBit:    OPWORD    $A864
  990.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  991.         IMPORT_CFM_FUNCTION ColorBit
  992.     ENDIF
  993.  
  994. ;
  995. ; pascal void SetRect(Rect *r, short left, short top, short right, short bottom)
  996. ;
  997.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  998.         _SetRect:    OPWORD    $A8A7
  999.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  1000.         IMPORT_CFM_FUNCTION SetRect
  1001.     ENDIF
  1002.  
  1003. ;
  1004. ; pascal void OffsetRect(Rect *r, short dh, short dv)
  1005. ;
  1006.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  1007.         _OffsetRect:    OPWORD    $A8A8
  1008.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  1009.         IMPORT_CFM_FUNCTION OffsetRect
  1010.     ENDIF
  1011.  
  1012. ;
  1013. ; pascal void InsetRect(Rect *r, short dh, short dv)
  1014. ;
  1015.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  1016.         _InsetRect:    OPWORD    $A8A9
  1017.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  1018.         IMPORT_CFM_FUNCTION InsetRect
  1019.     ENDIF
  1020.  
  1021. ;
  1022. ; pascal Boolean SectRect(const Rect *src1, const Rect *src2, Rect *dstRect)
  1023. ;
  1024.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  1025.         _SectRect:    OPWORD    $A8AA
  1026.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  1027.         IMPORT_CFM_FUNCTION SectRect
  1028.     ENDIF
  1029.  
  1030. ;
  1031. ; pascal void UnionRect(const Rect *src1, const Rect *src2, Rect *dstRect)
  1032. ;
  1033.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  1034.         _UnionRect:    OPWORD    $A8AB
  1035.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  1036.         IMPORT_CFM_FUNCTION UnionRect
  1037.     ENDIF
  1038.  
  1039. ;
  1040. ; pascal Boolean EqualRect(const Rect *rect1, const Rect *rect2)
  1041. ;
  1042.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  1043.         _EqualRect:    OPWORD    $A8A6
  1044.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  1045.         IMPORT_CFM_FUNCTION EqualRect
  1046.     ENDIF
  1047.  
  1048. ;
  1049. ; pascal Boolean EmptyRect(const Rect *r)
  1050. ;
  1051.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  1052.         _EmptyRect:    OPWORD    $A8AE
  1053.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  1054.         IMPORT_CFM_FUNCTION EmptyRect
  1055.     ENDIF
  1056.  
  1057. ;
  1058. ; pascal void FrameRect(const Rect *r)
  1059. ;
  1060.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  1061.         _FrameRect:    OPWORD    $A8A1
  1062.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  1063.         IMPORT_CFM_FUNCTION FrameRect
  1064.     ENDIF
  1065.  
  1066. ;
  1067. ; pascal void PaintRect(const Rect *r)
  1068. ;
  1069.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  1070.         _PaintRect:    OPWORD    $A8A2
  1071.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  1072.         IMPORT_CFM_FUNCTION PaintRect
  1073.     ENDIF
  1074.  
  1075. ;
  1076. ; pascal void EraseRect(const Rect *r)
  1077. ;
  1078.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  1079.         _EraseRect:    OPWORD    $A8A3
  1080.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  1081.         IMPORT_CFM_FUNCTION EraseRect
  1082.     ENDIF
  1083.  
  1084. ;
  1085. ; pascal void InvertRect(const Rect *r)
  1086. ;
  1087.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  1088.         _InvertRect:    OPWORD    $A8A4
  1089.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  1090.         IMPORT_CFM_FUNCTION InvertRect
  1091.     ENDIF
  1092.  
  1093. ;
  1094. ; pascal void FillRect(const Rect *r, const Pattern *pat)
  1095. ;
  1096.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  1097.         _FillRect:    OPWORD    $A8A5
  1098.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  1099.         IMPORT_CFM_FUNCTION FillRect
  1100.     ENDIF
  1101.  
  1102. ;
  1103. ; pascal void FrameOval(const Rect *r)
  1104. ;
  1105.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  1106.         _FrameOval:    OPWORD    $A8B7
  1107.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  1108.         IMPORT_CFM_FUNCTION FrameOval
  1109.     ENDIF
  1110.  
  1111. ;
  1112. ; pascal void PaintOval(const Rect *r)
  1113. ;
  1114.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  1115.         _PaintOval:    OPWORD    $A8B8
  1116.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  1117.         IMPORT_CFM_FUNCTION PaintOval
  1118.     ENDIF
  1119.  
  1120. ;
  1121. ; pascal void EraseOval(const Rect *r)
  1122. ;
  1123.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  1124.         _EraseOval:    OPWORD    $A8B9
  1125.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  1126.         IMPORT_CFM_FUNCTION EraseOval
  1127.     ENDIF
  1128.  
  1129. ;
  1130. ; pascal void InvertOval(const Rect *r)
  1131. ;
  1132.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  1133.         _InvertOval:    OPWORD    $A8BA
  1134.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  1135.         IMPORT_CFM_FUNCTION InvertOval
  1136.     ENDIF
  1137.  
  1138. ;
  1139. ; pascal void FillOval(const Rect *r, const Pattern *pat)
  1140. ;
  1141.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  1142.         _FillOval:    OPWORD    $A8BB
  1143.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  1144.         IMPORT_CFM_FUNCTION FillOval
  1145.     ENDIF
  1146.  
  1147. ;
  1148. ; pascal void FrameRoundRect(const Rect *r, short ovalWidth, short ovalHeight)
  1149. ;
  1150.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  1151.         _FrameRoundRect:    OPWORD    $A8B0
  1152.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  1153.         IMPORT_CFM_FUNCTION FrameRoundRect
  1154.     ENDIF
  1155.  
  1156. ;
  1157. ; pascal void PaintRoundRect(const Rect *r, short ovalWidth, short ovalHeight)
  1158. ;
  1159.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  1160.         _PaintRoundRect:    OPWORD    $A8B1
  1161.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  1162.         IMPORT_CFM_FUNCTION PaintRoundRect
  1163.     ENDIF
  1164.  
  1165. ;
  1166. ; pascal void EraseRoundRect(const Rect *r, short ovalWidth, short ovalHeight)
  1167. ;
  1168.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  1169.         _EraseRoundRect:    OPWORD    $A8B2
  1170.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  1171.         IMPORT_CFM_FUNCTION EraseRoundRect
  1172.     ENDIF
  1173.  
  1174. ;
  1175. ; pascal void InvertRoundRect(const Rect *r, short ovalWidth, short ovalHeight)
  1176. ;
  1177.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  1178.         _InvertRoundRect:    OPWORD    $A8B3
  1179.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  1180.         IMPORT_CFM_FUNCTION InvertRoundRect
  1181.     ENDIF
  1182.  
  1183. ;
  1184. ; pascal void FillRoundRect(const Rect *r, short ovalWidth, short ovalHeight, const Pattern *pat)
  1185. ;
  1186.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  1187.         _FillRoundRect:    OPWORD    $A8B4
  1188.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  1189.         IMPORT_CFM_FUNCTION FillRoundRect
  1190.     ENDIF
  1191.  
  1192. ;
  1193. ; pascal void FrameArc(const Rect *r, short startAngle, short arcAngle)
  1194. ;
  1195.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  1196.         _FrameArc:    OPWORD    $A8BE
  1197.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  1198.         IMPORT_CFM_FUNCTION FrameArc
  1199.     ENDIF
  1200.  
  1201. ;
  1202. ; pascal void PaintArc(const Rect *r, short startAngle, short arcAngle)
  1203. ;
  1204.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  1205.         _PaintArc:    OPWORD    $A8BF
  1206.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  1207.         IMPORT_CFM_FUNCTION PaintArc
  1208.     ENDIF
  1209.  
  1210. ;
  1211. ; pascal void EraseArc(const Rect *r, short startAngle, short arcAngle)
  1212. ;
  1213.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  1214.         _EraseArc:    OPWORD    $A8C0
  1215.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  1216.         IMPORT_CFM_FUNCTION EraseArc
  1217.     ENDIF
  1218.  
  1219. ;
  1220. ; pascal void InvertArc(const Rect *r, short startAngle, short arcAngle)
  1221. ;
  1222.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  1223.         _InvertArc:    OPWORD    $A8C1
  1224.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  1225.         IMPORT_CFM_FUNCTION InvertArc
  1226.     ENDIF
  1227.  
  1228. ;
  1229. ; pascal void FillArc(const Rect *r, short startAngle, short arcAngle, const Pattern *pat)
  1230. ;
  1231.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  1232.         _FillArc:    OPWORD    $A8C2
  1233.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  1234.         IMPORT_CFM_FUNCTION FillArc
  1235.     ENDIF
  1236.  
  1237. ;
  1238. ; pascal RgnHandle NewRgn(void )
  1239. ;
  1240.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  1241.         _NewRgn:    OPWORD    $A8D8
  1242.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  1243.         IMPORT_CFM_FUNCTION NewRgn
  1244.     ENDIF
  1245.  
  1246. ;
  1247. ; pascal void OpenRgn(void )
  1248. ;
  1249.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  1250.         _OpenRgn:    OPWORD    $A8DA
  1251.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  1252.         IMPORT_CFM_FUNCTION OpenRgn
  1253.     ENDIF
  1254.  
  1255. ;
  1256. ; pascal void CloseRgn(RgnHandle dstRgn)
  1257. ;
  1258.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  1259.         _CloseRgn:    OPWORD    $A8DB
  1260.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  1261.         IMPORT_CFM_FUNCTION CloseRgn
  1262.     ENDIF
  1263.  
  1264. ;
  1265. ; pascal OSErr BitMapToRegion(RgnHandle region, const BitMap *bMap)
  1266. ;
  1267.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  1268.         _BitMapToRegion:    OPWORD    $A8D7
  1269.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  1270.         IMPORT_CFM_FUNCTION BitMapToRegion
  1271.     ENDIF
  1272.  
  1273. ;
  1274. ; pascal void DisposeRgn(RgnHandle rgn)
  1275. ;
  1276.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  1277.         _DisposeRgn:    OPWORD    $A8D9
  1278.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  1279.         IMPORT_CFM_FUNCTION DisposeRgn
  1280.     ENDIF
  1281.  
  1282. ;
  1283. ; pascal void CopyRgn(RgnHandle srcRgn, RgnHandle dstRgn)
  1284. ;
  1285.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  1286.         _CopyRgn:    OPWORD    $A8DC
  1287.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  1288.         IMPORT_CFM_FUNCTION CopyRgn
  1289.     ENDIF
  1290.  
  1291. ;
  1292. ; pascal void SetEmptyRgn(RgnHandle rgn)
  1293. ;
  1294.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  1295.         _SetEmptyRgn:    OPWORD    $A8DD
  1296.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  1297.         IMPORT_CFM_FUNCTION SetEmptyRgn
  1298.     ENDIF
  1299.  
  1300. ;
  1301. ; pascal void SetRectRgn(RgnHandle rgn, short left, short top, short right, short bottom)
  1302. ;
  1303.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  1304.         _SetRectRgn:    OPWORD    $A8DE
  1305.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  1306.         IMPORT_CFM_FUNCTION SetRectRgn
  1307.     ENDIF
  1308.  
  1309. ;
  1310. ; pascal void RectRgn(RgnHandle rgn, const Rect *r)
  1311. ;
  1312.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  1313.         _RectRgn:    OPWORD    $A8DF
  1314.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  1315.         IMPORT_CFM_FUNCTION RectRgn
  1316.     ENDIF
  1317.  
  1318. ;
  1319. ; pascal void OffsetRgn(RgnHandle rgn, short dh, short dv)
  1320. ;
  1321.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  1322.         _OffsetRgn:    OPWORD    $A8E0
  1323.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  1324.         IMPORT_CFM_FUNCTION OffsetRgn
  1325.     ENDIF
  1326.  
  1327. ;
  1328. ; pascal void InsetRgn(RgnHandle rgn, short dh, short dv)
  1329. ;
  1330.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  1331.         _InsetRgn:    OPWORD    $A8E1
  1332.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  1333.         IMPORT_CFM_FUNCTION InsetRgn
  1334.     ENDIF
  1335.  
  1336. ;
  1337. ; pascal void SectRgn(RgnHandle srcRgnA, RgnHandle srcRgnB, RgnHandle dstRgn)
  1338. ;
  1339.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  1340.         _SectRgn:    OPWORD    $A8E4
  1341.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  1342.         IMPORT_CFM_FUNCTION SectRgn
  1343.     ENDIF
  1344.  
  1345. ;
  1346. ; pascal void UnionRgn(RgnHandle srcRgnA, RgnHandle srcRgnB, RgnHandle dstRgn)
  1347. ;
  1348.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  1349.         _UnionRgn:    OPWORD    $A8E5
  1350.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  1351.         IMPORT_CFM_FUNCTION UnionRgn
  1352.     ENDIF
  1353.  
  1354. ;
  1355. ; pascal void DiffRgn(RgnHandle srcRgnA, RgnHandle srcRgnB, RgnHandle dstRgn)
  1356. ;
  1357.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  1358.         _DiffRgn:    OPWORD    $A8E6
  1359.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  1360.         IMPORT_CFM_FUNCTION DiffRgn
  1361.     ENDIF
  1362.  
  1363. ;
  1364. ; pascal void XorRgn(RgnHandle srcRgnA, RgnHandle srcRgnB, RgnHandle dstRgn)
  1365. ;
  1366.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  1367.         _XorRgn:    OPWORD    $A8E7
  1368.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  1369.         IMPORT_CFM_FUNCTION XorRgn
  1370.     ENDIF
  1371.  
  1372. ;
  1373. ; pascal Boolean RectInRgn(const Rect *r, RgnHandle rgn)
  1374. ;
  1375.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  1376.         _RectInRgn:    OPWORD    $A8E9
  1377.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  1378.         IMPORT_CFM_FUNCTION RectInRgn
  1379.     ENDIF
  1380.  
  1381. ;
  1382. ; pascal Boolean EqualRgn(RgnHandle rgnA, RgnHandle rgnB)
  1383. ;
  1384.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  1385.         _EqualRgn:    OPWORD    $A8E3
  1386.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  1387.         IMPORT_CFM_FUNCTION EqualRgn
  1388.     ENDIF
  1389.  
  1390. ;
  1391. ; pascal Boolean EmptyRgn(RgnHandle rgn)
  1392. ;
  1393.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  1394.         _EmptyRgn:    OPWORD    $A8E2
  1395.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  1396.         IMPORT_CFM_FUNCTION EmptyRgn
  1397.     ENDIF
  1398.  
  1399. ;
  1400. ; pascal void FrameRgn(RgnHandle rgn)
  1401. ;
  1402.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  1403.         _FrameRgn:    OPWORD    $A8D2
  1404.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  1405.         IMPORT_CFM_FUNCTION FrameRgn
  1406.     ENDIF
  1407.  
  1408. ;
  1409. ; pascal void PaintRgn(RgnHandle rgn)
  1410. ;
  1411.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  1412.         _PaintRgn:    OPWORD    $A8D3
  1413.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  1414.         IMPORT_CFM_FUNCTION PaintRgn
  1415.     ENDIF
  1416.  
  1417. ;
  1418. ; pascal void EraseRgn(RgnHandle rgn)
  1419. ;
  1420.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  1421.         _EraseRgn:    OPWORD    $A8D4
  1422.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  1423.         IMPORT_CFM_FUNCTION EraseRgn
  1424.     ENDIF
  1425.  
  1426. ;
  1427. ; pascal void InvertRgn(RgnHandle rgn)
  1428. ;
  1429.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  1430.         _InvertRgn:    OPWORD    $A8D5
  1431.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  1432.         IMPORT_CFM_FUNCTION InvertRgn
  1433.     ENDIF
  1434.  
  1435. ;
  1436. ; pascal void FillRgn(RgnHandle rgn, const Pattern *pat)
  1437. ;
  1438.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  1439.         _FillRgn:    OPWORD    $A8D6
  1440.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  1441.         IMPORT_CFM_FUNCTION FillRgn
  1442.     ENDIF
  1443.  
  1444. ;
  1445. ; pascal void ScrollRect(const Rect *r, short dh, short dv, RgnHandle updateRgn)
  1446. ;
  1447.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  1448.         _ScrollRect:    OPWORD    $A8EF
  1449.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  1450.         IMPORT_CFM_FUNCTION ScrollRect
  1451.     ENDIF
  1452.  
  1453. ;
  1454. ; pascal void CopyBits(const BitMap *srcBits, const BitMap *dstBits, const Rect *srcRect, const Rect *dstRect, short mode, RgnHandle maskRgn)
  1455. ;
  1456.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  1457.         _CopyBits:    OPWORD    $A8EC
  1458.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  1459.         IMPORT_CFM_FUNCTION CopyBits
  1460.     ENDIF
  1461.  
  1462. ;
  1463. ; pascal void SeedFill(const void *srcPtr, void *dstPtr, short srcRow, short dstRow, short height, short words, short seedH, short seedV)
  1464. ;
  1465.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  1466.         _SeedFill:    OPWORD    $A839
  1467.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  1468.         IMPORT_CFM_FUNCTION SeedFill
  1469.     ENDIF
  1470.  
  1471. ;
  1472. ; pascal void CalcMask(const void *srcPtr, void *dstPtr, short srcRow, short dstRow, short height, short words)
  1473. ;
  1474.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  1475.         _CalcMask:    OPWORD    $A838
  1476.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  1477.         IMPORT_CFM_FUNCTION CalcMask
  1478.     ENDIF
  1479.  
  1480. ;
  1481. ; pascal void CopyMask(const BitMap *srcBits, const BitMap *maskBits, const BitMap *dstBits, const Rect *srcRect, const Rect *maskRect, const Rect *dstRect)
  1482. ;
  1483.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  1484.         _CopyMask:    OPWORD    $A817
  1485.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  1486.         IMPORT_CFM_FUNCTION CopyMask
  1487.     ENDIF
  1488.  
  1489. ;
  1490. ; pascal PicHandle OpenPicture(const Rect *picFrame)
  1491. ;
  1492.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  1493.         _OpenPicture:    OPWORD    $A8F3
  1494.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  1495.         IMPORT_CFM_FUNCTION OpenPicture
  1496.     ENDIF
  1497.  
  1498. ;
  1499. ; pascal void PicComment(short kind, short dataSize, Handle dataHandle)
  1500. ;
  1501.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  1502.         _PicComment:    OPWORD    $A8F2
  1503.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  1504.         IMPORT_CFM_FUNCTION PicComment
  1505.     ENDIF
  1506.  
  1507. ;
  1508. ; pascal void ClosePicture(void )
  1509. ;
  1510.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  1511.         _ClosePicture:    OPWORD    $A8F4
  1512.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  1513.         IMPORT_CFM_FUNCTION ClosePicture
  1514.     ENDIF
  1515.  
  1516. ;
  1517. ; pascal void DrawPicture(PicHandle myPicture, const Rect *dstRect)
  1518. ;
  1519.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  1520.         _DrawPicture:    OPWORD    $A8F6
  1521.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  1522.         IMPORT_CFM_FUNCTION DrawPicture
  1523.     ENDIF
  1524.  
  1525. ;
  1526. ; pascal void KillPicture(PicHandle myPicture)
  1527. ;
  1528.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  1529.         _KillPicture:    OPWORD    $A8F5
  1530.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  1531.         IMPORT_CFM_FUNCTION KillPicture
  1532.     ENDIF
  1533.  
  1534. ;
  1535. ; pascal PolyHandle OpenPoly(void )
  1536. ;
  1537.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  1538.         _OpenPoly:    OPWORD    $A8CB
  1539.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  1540.         IMPORT_CFM_FUNCTION OpenPoly
  1541.     ENDIF
  1542.  
  1543. ;
  1544. ; pascal void ClosePoly(void )
  1545. ;
  1546.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  1547.         _ClosePoly:    OPWORD    $A8CC
  1548.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  1549.         IMPORT_CFM_FUNCTION ClosePoly
  1550.     ENDIF
  1551.  
  1552. ;
  1553. ; pascal void KillPoly(PolyHandle poly)
  1554. ;
  1555.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  1556.         _KillPoly:    OPWORD    $A8CD
  1557.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  1558.         IMPORT_CFM_FUNCTION KillPoly
  1559.     ENDIF
  1560.  
  1561. ;
  1562. ; pascal void OffsetPoly(PolyHandle poly, short dh, short dv)
  1563. ;
  1564.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  1565.         _OffsetPoly:    OPWORD    $A8CE
  1566.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  1567.         IMPORT_CFM_FUNCTION OffsetPoly
  1568.     ENDIF
  1569.  
  1570. ;
  1571. ; pascal void FramePoly(PolyHandle poly)
  1572. ;
  1573.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  1574.         _FramePoly:    OPWORD    $A8C6
  1575.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  1576.         IMPORT_CFM_FUNCTION FramePoly
  1577.     ENDIF
  1578.  
  1579. ;
  1580. ; pascal void PaintPoly(PolyHandle poly)
  1581. ;
  1582.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  1583.         _PaintPoly:    OPWORD    $A8C7
  1584.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  1585.         IMPORT_CFM_FUNCTION PaintPoly
  1586.     ENDIF
  1587.  
  1588. ;
  1589. ; pascal void ErasePoly(PolyHandle poly)
  1590. ;
  1591.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  1592.         _ErasePoly:    OPWORD    $A8C8
  1593.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  1594.         IMPORT_CFM_FUNCTION ErasePoly
  1595.     ENDIF
  1596.  
  1597. ;
  1598. ; pascal void InvertPoly(PolyHandle poly)
  1599. ;
  1600.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  1601.         _InvertPoly:    OPWORD    $A8C9
  1602.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  1603.         IMPORT_CFM_FUNCTION InvertPoly
  1604.     ENDIF
  1605.  
  1606. ;
  1607. ; pascal void FillPoly(PolyHandle poly, const Pattern *pat)
  1608. ;
  1609.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  1610.         _FillPoly:    OPWORD    $A8CA
  1611.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  1612.         IMPORT_CFM_FUNCTION FillPoly
  1613.     ENDIF
  1614.  
  1615. ;
  1616. ; pascal void SetPt(Point *pt, short h, short v)
  1617. ;
  1618.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  1619.         _SetPt:    OPWORD    $A880
  1620.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  1621.         IMPORT_CFM_FUNCTION SetPt
  1622.     ENDIF
  1623.  
  1624. ;
  1625. ; pascal void LocalToGlobal(Point *pt)
  1626. ;
  1627.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  1628.         _LocalToGlobal:    OPWORD    $A870
  1629.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  1630.         IMPORT_CFM_FUNCTION LocalToGlobal
  1631.     ENDIF
  1632.  
  1633. ;
  1634. ; pascal void GlobalToLocal(Point *pt)
  1635. ;
  1636.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  1637.         _GlobalToLocal:    OPWORD    $A871
  1638.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  1639.         IMPORT_CFM_FUNCTION GlobalToLocal
  1640.     ENDIF
  1641.  
  1642. ;
  1643. ; pascal short Random(void )
  1644. ;
  1645.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  1646.         _Random:    OPWORD    $A861
  1647.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  1648.         IMPORT_CFM_FUNCTION Random
  1649.     ENDIF
  1650.  
  1651. ;
  1652. ; pascal void StuffHex(void *thingPtr, ConstStr255Param s)
  1653. ;
  1654.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  1655.         _StuffHex:    OPWORD    $A866
  1656.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  1657.         IMPORT_CFM_FUNCTION StuffHex
  1658.     ENDIF
  1659.  
  1660. ;
  1661. ; pascal Boolean GetPixel(short h, short v)
  1662. ;
  1663.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  1664.         _GetPixel:    OPWORD    $A865
  1665.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  1666.         IMPORT_CFM_FUNCTION GetPixel
  1667.     ENDIF
  1668.  
  1669. ;
  1670. ; pascal void ScalePt(Point *pt, const Rect *srcRect, const Rect *dstRect)
  1671. ;
  1672.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  1673.         _ScalePt:    OPWORD    $A8F8
  1674.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  1675.         IMPORT_CFM_FUNCTION ScalePt
  1676.     ENDIF
  1677.  
  1678. ;
  1679. ; pascal void MapPt(Point *pt, const Rect *srcRect, const Rect *dstRect)
  1680. ;
  1681.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  1682.         _MapPt:    OPWORD    $A8F9
  1683.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  1684.         IMPORT_CFM_FUNCTION MapPt
  1685.     ENDIF
  1686.  
  1687. ;
  1688. ; pascal void MapRect(Rect *r, const Rect *srcRect, const Rect *dstRect)
  1689. ;
  1690.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  1691.         _MapRect:    OPWORD    $A8FA
  1692.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  1693.         IMPORT_CFM_FUNCTION MapRect
  1694.     ENDIF
  1695.  
  1696. ;
  1697. ; pascal void MapRgn(RgnHandle rgn, const Rect *srcRect, const Rect *dstRect)
  1698. ;
  1699.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  1700.         _MapRgn:    OPWORD    $A8FB
  1701.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  1702.         IMPORT_CFM_FUNCTION MapRgn
  1703.     ENDIF
  1704.  
  1705. ;
  1706. ; pascal void MapPoly(PolyHandle poly, const Rect *srcRect, const Rect *dstRect)
  1707. ;
  1708.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  1709.         _MapPoly:    OPWORD    $A8FC
  1710.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  1711.         IMPORT_CFM_FUNCTION MapPoly
  1712.     ENDIF
  1713.  
  1714. ;
  1715. ; pascal void SetStdProcs(QDProcs *procs)
  1716. ;
  1717.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  1718.         _SetStdProcs:    OPWORD    $A8EA
  1719.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  1720.         IMPORT_CFM_FUNCTION SetStdProcs
  1721.     ENDIF
  1722.  
  1723. ;
  1724. ; pascal void StdRect(GrafVerb verb, const Rect *r)
  1725. ;
  1726.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  1727.         _StdRect:    OPWORD    $A8A0
  1728.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  1729.         IMPORT_CFM_FUNCTION StdRect
  1730.     ENDIF
  1731.  
  1732. ;
  1733. ; pascal void StdRRect(GrafVerb verb, const Rect *r, short ovalWidth, short ovalHeight)
  1734. ;
  1735.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  1736.         _StdRRect:    OPWORD    $A8AF
  1737.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  1738.         IMPORT_CFM_FUNCTION StdRRect
  1739.     ENDIF
  1740.  
  1741. ;
  1742. ; pascal void StdOval(GrafVerb verb, const Rect *r)
  1743. ;
  1744.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  1745.         _StdOval:    OPWORD    $A8B6
  1746.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  1747.         IMPORT_CFM_FUNCTION StdOval
  1748.     ENDIF
  1749.  
  1750. ;
  1751. ; pascal void StdArc(GrafVerb verb, const Rect *r, short startAngle, short arcAngle)
  1752. ;
  1753.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  1754.         _StdArc:    OPWORD    $A8BD
  1755.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  1756.         IMPORT_CFM_FUNCTION StdArc
  1757.     ENDIF
  1758.  
  1759. ;
  1760. ; pascal void StdPoly(GrafVerb verb, PolyHandle poly)
  1761. ;
  1762.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  1763.         _StdPoly:    OPWORD    $A8C5
  1764.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  1765.         IMPORT_CFM_FUNCTION StdPoly
  1766.     ENDIF
  1767.  
  1768. ;
  1769. ; pascal void StdRgn(GrafVerb verb, RgnHandle rgn)
  1770. ;
  1771.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  1772.         _StdRgn:    OPWORD    $A8D1
  1773.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  1774.         IMPORT_CFM_FUNCTION StdRgn
  1775.     ENDIF
  1776.  
  1777. ;
  1778. ; pascal void StdBits(const BitMap *srcBits, const Rect *srcRect, const Rect *dstRect, short mode, RgnHandle maskRgn)
  1779. ;
  1780.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  1781.         _StdBits:    OPWORD    $A8EB
  1782.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  1783.         IMPORT_CFM_FUNCTION StdBits
  1784.     ENDIF
  1785.  
  1786. ;
  1787. ; pascal void StdComment(short kind, short dataSize, Handle dataHandle)
  1788. ;
  1789.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  1790.         _StdComment:    OPWORD    $A8F1
  1791.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  1792.         IMPORT_CFM_FUNCTION StdComment
  1793.     ENDIF
  1794.  
  1795. ;
  1796. ; pascal void StdGetPic(void *dataPtr, short byteCount)
  1797. ;
  1798.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  1799.         _StdGetPic:    OPWORD    $A8EE
  1800.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  1801.         IMPORT_CFM_FUNCTION StdGetPic
  1802.     ENDIF
  1803.  
  1804. ;
  1805. ; pascal void StdPutPic(const void *dataPtr, short byteCount)
  1806. ;
  1807.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  1808.         _StdPutPic:    OPWORD    $A8F0
  1809.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  1810.         IMPORT_CFM_FUNCTION StdPutPic
  1811.     ENDIF
  1812.  
  1813. ;
  1814. ; pascal void StdOpcode(const Rect *fromRect, const Rect *toRect, UInt16 opcode, SInt16 version)
  1815. ;
  1816.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  1817.         _StdOpcode:    OPWORD    $ABF8
  1818.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  1819.         IMPORT_CFM_FUNCTION StdOpcode
  1820.     ENDIF
  1821.  
  1822. ;
  1823. ; pascal void AddPt(Point src, Point *dst)
  1824. ;
  1825.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  1826.         _AddPt:    OPWORD    $A87E
  1827.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  1828.         IMPORT_CFM_FUNCTION AddPt
  1829.     ENDIF
  1830.  
  1831. ;
  1832. ; pascal Boolean EqualPt(Point pt1, Point pt2)
  1833. ;
  1834.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  1835.         _EqualPt:    OPWORD    $A881
  1836.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  1837.         IMPORT_CFM_FUNCTION EqualPt
  1838.     ENDIF
  1839.  
  1840. ;
  1841. ; pascal Boolean PtInRect(Point pt, const Rect *r)
  1842. ;
  1843.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  1844.         _PtInRect:    OPWORD    $A8AD
  1845.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  1846.         IMPORT_CFM_FUNCTION PtInRect
  1847.     ENDIF
  1848.  
  1849. ;
  1850. ; pascal void Pt2Rect(Point pt1, Point pt2, Rect *dstRect)
  1851. ;
  1852.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  1853.         _Pt2Rect:    OPWORD    $A8AC
  1854.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  1855.         IMPORT_CFM_FUNCTION Pt2Rect
  1856.     ENDIF
  1857.  
  1858. ;
  1859. ; pascal void PtToAngle(const Rect *r, Point pt, short *angle)
  1860. ;
  1861.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  1862.         _PtToAngle:    OPWORD    $A8C3
  1863.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  1864.         IMPORT_CFM_FUNCTION PtToAngle
  1865.     ENDIF
  1866.  
  1867. ;
  1868. ; pascal void SubPt(Point src, Point *dst)
  1869. ;
  1870.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  1871.         _SubPt:    OPWORD    $A87F
  1872.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  1873.         IMPORT_CFM_FUNCTION SubPt
  1874.     ENDIF
  1875.  
  1876. ;
  1877. ; pascal Boolean PtInRgn(Point pt, RgnHandle rgn)
  1878. ;
  1879.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  1880.         _PtInRgn:    OPWORD    $A8E8
  1881.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  1882.         IMPORT_CFM_FUNCTION PtInRgn
  1883.     ENDIF
  1884.  
  1885. ;
  1886. ; pascal void StdLine(Point newPt)
  1887. ;
  1888.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  1889.         _StdLine:    OPWORD    $A890
  1890.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  1891.         IMPORT_CFM_FUNCTION StdLine
  1892.     ENDIF
  1893.  
  1894. ;
  1895. ; pascal void OpenCPort(CGrafPtr port)
  1896. ;
  1897.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  1898.         _OpenCPort:    OPWORD    $AA00
  1899.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  1900.         IMPORT_CFM_FUNCTION OpenCPort
  1901.     ENDIF
  1902.  
  1903. ;
  1904. ; pascal void InitCPort(CGrafPtr port)
  1905. ;
  1906.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  1907.         _InitCPort:    OPWORD    $AA01
  1908.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  1909.         IMPORT_CFM_FUNCTION InitCPort
  1910.     ENDIF
  1911.  
  1912. ;
  1913. ; pascal void CloseCPort(CGrafPtr port)
  1914. ;
  1915.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  1916.         _CloseCPort:    OPWORD    $AA02
  1917.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  1918.         IMPORT_CFM_FUNCTION CloseCPort
  1919.     ENDIF
  1920.  
  1921. ;
  1922. ; pascal PixMapHandle NewPixMap(void )
  1923. ;
  1924.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  1925.         _NewPixMap:    OPWORD    $AA03
  1926.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  1927.         IMPORT_CFM_FUNCTION NewPixMap
  1928.     ENDIF
  1929.  
  1930. ;
  1931. ; pascal void DisposePixMap(PixMapHandle pm)
  1932. ;
  1933.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  1934.         _DisposePixMap:    OPWORD    $AA04
  1935.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  1936.         IMPORT_CFM_FUNCTION DisposePixMap
  1937.     ENDIF
  1938.  
  1939. ;
  1940. ; pascal void CopyPixMap(PixMapHandle srcPM, PixMapHandle dstPM)
  1941. ;
  1942.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  1943.         _CopyPixMap:    OPWORD    $AA05
  1944.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  1945.         IMPORT_CFM_FUNCTION CopyPixMap
  1946.     ENDIF
  1947.  
  1948. ;
  1949. ; pascal PixPatHandle NewPixPat(void )
  1950. ;
  1951.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  1952.         _NewPixPat:    OPWORD    $AA07
  1953.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  1954.         IMPORT_CFM_FUNCTION NewPixPat
  1955.     ENDIF
  1956.  
  1957. ;
  1958. ; pascal void DisposePixPat(PixPatHandle pp)
  1959. ;
  1960.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  1961.         _DisposePixPat:    OPWORD    $AA08
  1962.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  1963.         IMPORT_CFM_FUNCTION DisposePixPat
  1964.     ENDIF
  1965.  
  1966. ;
  1967. ; pascal void CopyPixPat(PixPatHandle srcPP, PixPatHandle dstPP)
  1968. ;
  1969.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  1970.         _CopyPixPat:    OPWORD    $AA09
  1971.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  1972.         IMPORT_CFM_FUNCTION CopyPixPat
  1973.     ENDIF
  1974.  
  1975. ;
  1976. ; pascal void PenPixPat(PixPatHandle pp)
  1977. ;
  1978.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  1979.         _PenPixPat:    OPWORD    $AA0A
  1980.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  1981.         IMPORT_CFM_FUNCTION PenPixPat
  1982.     ENDIF
  1983.  
  1984. ;
  1985. ; pascal void BackPixPat(PixPatHandle pp)
  1986. ;
  1987.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  1988.         _BackPixPat:    OPWORD    $AA0B
  1989.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  1990.         IMPORT_CFM_FUNCTION BackPixPat
  1991.     ENDIF
  1992.  
  1993. ;
  1994. ; pascal PixPatHandle GetPixPat(short patID)
  1995. ;
  1996.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  1997.         _GetPixPat:    OPWORD    $AA0C
  1998.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  1999.         IMPORT_CFM_FUNCTION GetPixPat
  2000.     ENDIF
  2001.  
  2002. ;
  2003. ; pascal void MakeRGBPat(PixPatHandle pp, const RGBColor *myColor)
  2004. ;
  2005.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  2006.         _MakeRGBPat:    OPWORD    $AA0D
  2007.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  2008.         IMPORT_CFM_FUNCTION MakeRGBPat
  2009.     ENDIF
  2010.  
  2011. ;
  2012. ; pascal void FillCRect(const Rect *r, PixPatHandle pp)
  2013. ;
  2014.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  2015.         _FillCRect:    OPWORD    $AA0E
  2016.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  2017.         IMPORT_CFM_FUNCTION FillCRect
  2018.     ENDIF
  2019.  
  2020. ;
  2021. ; pascal void FillCOval(const Rect *r, PixPatHandle pp)
  2022. ;
  2023.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  2024.         _FillCOval:    OPWORD    $AA0F
  2025.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  2026.         IMPORT_CFM_FUNCTION FillCOval
  2027.     ENDIF
  2028.  
  2029. ;
  2030. ; pascal void FillCRoundRect(const Rect *r, short ovalWidth, short ovalHeight, PixPatHandle pp)
  2031. ;
  2032.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  2033.         _FillCRoundRect:    OPWORD    $AA10
  2034.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  2035.         IMPORT_CFM_FUNCTION FillCRoundRect
  2036.     ENDIF
  2037.  
  2038. ;
  2039. ; pascal void FillCArc(const Rect *r, short startAngle, short arcAngle, PixPatHandle pp)
  2040. ;
  2041.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  2042.         _FillCArc:    OPWORD    $AA11
  2043.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  2044.         IMPORT_CFM_FUNCTION FillCArc
  2045.     ENDIF
  2046.  
  2047. ;
  2048. ; pascal void FillCRgn(RgnHandle rgn, PixPatHandle pp)
  2049. ;
  2050.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  2051.         _FillCRgn:    OPWORD    $AA12
  2052.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  2053.         IMPORT_CFM_FUNCTION FillCRgn
  2054.     ENDIF
  2055.  
  2056. ;
  2057. ; pascal void FillCPoly(PolyHandle poly, PixPatHandle pp)
  2058. ;
  2059.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  2060.         _FillCPoly:    OPWORD    $AA13
  2061.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  2062.         IMPORT_CFM_FUNCTION FillCPoly
  2063.     ENDIF
  2064.  
  2065. ;
  2066. ; pascal void RGBForeColor(const RGBColor *color)
  2067. ;
  2068.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  2069.         _RGBForeColor:    OPWORD    $AA14
  2070.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  2071.         IMPORT_CFM_FUNCTION RGBForeColor
  2072.     ENDIF
  2073.  
  2074. ;
  2075. ; pascal void RGBBackColor(const RGBColor *color)
  2076. ;
  2077.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  2078.         _RGBBackColor:    OPWORD    $AA15
  2079.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  2080.         IMPORT_CFM_FUNCTION RGBBackColor
  2081.     ENDIF
  2082.  
  2083. ;
  2084. ; pascal void SetCPixel(short h, short v, const RGBColor *cPix)
  2085. ;
  2086.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  2087.         _SetCPixel:    OPWORD    $AA16
  2088.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  2089.         IMPORT_CFM_FUNCTION SetCPixel
  2090.     ENDIF
  2091.  
  2092. ;
  2093. ; pascal void SetPortPix(PixMapHandle pm)
  2094. ;
  2095.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  2096.         _SetPortPix:    OPWORD    $AA06
  2097.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  2098.         IMPORT_CFM_FUNCTION SetPortPix
  2099.     ENDIF
  2100.  
  2101. ;
  2102. ; pascal void GetCPixel(short h, short v, RGBColor *cPix)
  2103. ;
  2104.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  2105.         _GetCPixel:    OPWORD    $AA17
  2106.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  2107.         IMPORT_CFM_FUNCTION GetCPixel
  2108.     ENDIF
  2109.  
  2110. ;
  2111. ; pascal void GetForeColor(RGBColor *color)
  2112. ;
  2113.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  2114.         _GetForeColor:    OPWORD    $AA19
  2115.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  2116.         IMPORT_CFM_FUNCTION GetForeColor
  2117.     ENDIF
  2118.  
  2119. ;
  2120. ; pascal void GetBackColor(RGBColor *color)
  2121. ;
  2122.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  2123.         _GetBackColor:    OPWORD    $AA1A
  2124.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  2125.         IMPORT_CFM_FUNCTION GetBackColor
  2126.     ENDIF
  2127.  
  2128. ;
  2129. ; pascal void SeedCFill(const BitMap *srcBits, const BitMap *dstBits, const Rect *srcRect, const Rect *dstRect, short seedH, short seedV, ColorSearchUPP matchProc, long matchData)
  2130. ;
  2131.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  2132.         _SeedCFill:    OPWORD    $AA50
  2133.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  2134.         IMPORT_CFM_FUNCTION SeedCFill
  2135.     ENDIF
  2136.  
  2137. ;
  2138. ; pascal void CalcCMask(const BitMap *srcBits, const BitMap *dstBits, const Rect *srcRect, const Rect *dstRect, const RGBColor *seedRGB, ColorSearchUPP matchProc, long matchData)
  2139. ;
  2140.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  2141.         _CalcCMask:    OPWORD    $AA4F
  2142.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  2143.         IMPORT_CFM_FUNCTION CalcCMask
  2144.     ENDIF
  2145.  
  2146. ;
  2147. ; pascal PicHandle OpenCPicture(const OpenCPicParams *newHeader)
  2148. ;
  2149.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  2150.         _OpenCPicture:    OPWORD    $AA20
  2151.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  2152.         IMPORT_CFM_FUNCTION OpenCPicture
  2153.     ENDIF
  2154.  
  2155. ;
  2156. ; pascal void OpColor(const RGBColor *color)
  2157. ;
  2158.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  2159.         _OpColor:    OPWORD    $AA21
  2160.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  2161.         IMPORT_CFM_FUNCTION OpColor
  2162.     ENDIF
  2163.  
  2164. ;
  2165. ; pascal void HiliteColor(const RGBColor *color)
  2166. ;
  2167.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  2168.         _HiliteColor:    OPWORD    $AA22
  2169.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  2170.         IMPORT_CFM_FUNCTION HiliteColor
  2171.     ENDIF
  2172.  
  2173. ;
  2174. ; pascal void DisposeCTable(CTabHandle cTable)
  2175. ;
  2176.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  2177.         _DisposeCTable:    OPWORD    $AA24
  2178.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  2179.         IMPORT_CFM_FUNCTION DisposeCTable
  2180.     ENDIF
  2181.  
  2182. ;
  2183. ; pascal CTabHandle GetCTable(short ctID)
  2184. ;
  2185.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  2186.         _GetCTable:    OPWORD    $AA18
  2187.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  2188.         IMPORT_CFM_FUNCTION GetCTable
  2189.     ENDIF
  2190.  
  2191. ;
  2192. ; pascal CCrsrHandle GetCCursor(short crsrID)
  2193. ;
  2194.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  2195.         _GetCCursor:    OPWORD    $AA1B
  2196.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  2197.         IMPORT_CFM_FUNCTION GetCCursor
  2198.     ENDIF
  2199.  
  2200. ;
  2201. ; pascal void SetCCursor(CCrsrHandle cCrsr)
  2202. ;
  2203.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  2204.         _SetCCursor:    OPWORD    $AA1C
  2205.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  2206.         IMPORT_CFM_FUNCTION SetCCursor
  2207.     ENDIF
  2208.  
  2209. ;
  2210. ; pascal void AllocCursor(void )
  2211. ;
  2212.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  2213.         _AllocCursor:    OPWORD    $AA1D
  2214.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  2215.         IMPORT_CFM_FUNCTION AllocCursor
  2216.     ENDIF
  2217.  
  2218. ;
  2219. ; pascal void DisposeCCursor(CCrsrHandle cCrsr)
  2220. ;
  2221.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  2222.         _DisposeCCursor:    OPWORD    $AA26
  2223.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  2224.         IMPORT_CFM_FUNCTION DisposeCCursor
  2225.     ENDIF
  2226.  
  2227.     IF OLDROUTINELOCATIONS THEN
  2228. ;
  2229. ; pascal CIconHandle GetCIcon(short iconID)
  2230. ;
  2231.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  2232.         _GetCIcon:    OPWORD    $AA1E
  2233.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  2234.         IMPORT_CFM_FUNCTION GetCIcon
  2235.     ENDIF
  2236.  
  2237. ;
  2238. ; pascal void PlotCIcon(const Rect *theRect, CIconHandle theIcon)
  2239. ;
  2240.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  2241.         _PlotCIcon:    OPWORD    $AA1F
  2242.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  2243.         IMPORT_CFM_FUNCTION PlotCIcon
  2244.     ENDIF
  2245.  
  2246. ;
  2247. ; pascal void DisposeCIcon(CIconHandle theIcon)
  2248. ;
  2249.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  2250.         _DisposeCIcon:    OPWORD    $AA25
  2251.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  2252.         IMPORT_CFM_FUNCTION DisposeCIcon
  2253.     ENDIF
  2254.  
  2255.     ENDIF    ; OLDROUTINELOCATIONS
  2256. ;
  2257. ; pascal void SetStdCProcs(CQDProcs *procs)
  2258. ;
  2259.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  2260.         _SetStdCProcs:    OPWORD    $AA4E
  2261.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  2262.         IMPORT_CFM_FUNCTION SetStdCProcs
  2263.     ENDIF
  2264.  
  2265. ;
  2266. ; pascal GDHandle GetMaxDevice(const Rect *globalRect)
  2267. ;
  2268.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  2269.         _GetMaxDevice:    OPWORD    $AA27
  2270.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  2271.         IMPORT_CFM_FUNCTION GetMaxDevice
  2272.     ENDIF
  2273.  
  2274. ;
  2275. ; pascal long GetCTSeed(void )
  2276. ;
  2277.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  2278.         _GetCTSeed:    OPWORD    $AA28
  2279.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  2280.         IMPORT_CFM_FUNCTION GetCTSeed
  2281.     ENDIF
  2282.  
  2283. ;
  2284. ; pascal GDHandle GetDeviceList(void )
  2285. ;
  2286.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  2287.         _GetDeviceList:    OPWORD    $AA29
  2288.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  2289.         IMPORT_CFM_FUNCTION GetDeviceList
  2290.     ENDIF
  2291.  
  2292. ;
  2293. ; pascal GDHandle GetMainDevice(void )
  2294. ;
  2295.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  2296.         _GetMainDevice:    OPWORD    $AA2A
  2297.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  2298.         IMPORT_CFM_FUNCTION GetMainDevice
  2299.     ENDIF
  2300.  
  2301. ;
  2302. ; pascal GDHandle GetNextDevice(GDHandle curDevice)
  2303. ;
  2304.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  2305.         _GetNextDevice:    OPWORD    $AA2B
  2306.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  2307.         IMPORT_CFM_FUNCTION GetNextDevice
  2308.     ENDIF
  2309.  
  2310. ;
  2311. ; pascal Boolean TestDeviceAttribute(GDHandle gdh, short attribute)
  2312. ;
  2313.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  2314.         _TestDeviceAttribute:    OPWORD    $AA2C
  2315.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  2316.         IMPORT_CFM_FUNCTION TestDeviceAttribute
  2317.     ENDIF
  2318.  
  2319. ;
  2320. ; pascal void SetDeviceAttribute(GDHandle gdh, short attribute, Boolean value)
  2321. ;
  2322.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  2323.         _SetDeviceAttribute:    OPWORD    $AA2D
  2324.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  2325.         IMPORT_CFM_FUNCTION SetDeviceAttribute
  2326.     ENDIF
  2327.  
  2328. ;
  2329. ; pascal void InitGDevice(short qdRefNum, long mode, GDHandle gdh)
  2330. ;
  2331.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  2332.         _InitGDevice:    OPWORD    $AA2E
  2333.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  2334.         IMPORT_CFM_FUNCTION InitGDevice
  2335.     ENDIF
  2336.  
  2337. ;
  2338. ; pascal GDHandle NewGDevice(short refNum, long mode)
  2339. ;
  2340.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  2341.         _NewGDevice:    OPWORD    $AA2F
  2342.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  2343.         IMPORT_CFM_FUNCTION NewGDevice
  2344.     ENDIF
  2345.  
  2346. ;
  2347. ; pascal void DisposeGDevice(GDHandle gdh)
  2348. ;
  2349.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  2350.         _DisposeGDevice:    OPWORD    $AA30
  2351.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  2352.         IMPORT_CFM_FUNCTION DisposeGDevice
  2353.     ENDIF
  2354.  
  2355. ;
  2356. ; pascal void SetGDevice(GDHandle gd)
  2357. ;
  2358.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  2359.         _SetGDevice:    OPWORD    $AA31
  2360.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  2361.         IMPORT_CFM_FUNCTION SetGDevice
  2362.     ENDIF
  2363.  
  2364. ;
  2365. ; pascal GDHandle GetGDevice(void )
  2366. ;
  2367.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  2368.         _GetGDevice:    OPWORD    $AA32
  2369.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  2370.         IMPORT_CFM_FUNCTION GetGDevice
  2371.     ENDIF
  2372.  
  2373. ;
  2374. ; pascal long Color2Index(const RGBColor *myColor)
  2375. ;
  2376.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  2377.         _Color2Index:    OPWORD    $AA33
  2378.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  2379.         IMPORT_CFM_FUNCTION Color2Index
  2380.     ENDIF
  2381.  
  2382. ;
  2383. ; pascal void Index2Color(long index, RGBColor *aColor)
  2384. ;
  2385.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  2386.         _Index2Color:    OPWORD    $AA34
  2387.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  2388.         IMPORT_CFM_FUNCTION Index2Color
  2389.     ENDIF
  2390.  
  2391. ;
  2392. ; pascal void InvertColor(RGBColor *myColor)
  2393. ;
  2394.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  2395.         _InvertColor:    OPWORD    $AA35
  2396.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  2397.         IMPORT_CFM_FUNCTION InvertColor
  2398.     ENDIF
  2399.  
  2400. ;
  2401. ; pascal Boolean RealColor(const RGBColor *color)
  2402. ;
  2403.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  2404.         _RealColor:    OPWORD    $AA36
  2405.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  2406.         IMPORT_CFM_FUNCTION RealColor
  2407.     ENDIF
  2408.  
  2409. ;
  2410. ; pascal void GetSubTable(CTabHandle myColors, short iTabRes, CTabHandle targetTbl)
  2411. ;
  2412.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  2413.         _GetSubTable:    OPWORD    $AA37
  2414.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  2415.         IMPORT_CFM_FUNCTION GetSubTable
  2416.     ENDIF
  2417.  
  2418. ;
  2419. ; pascal void MakeITable(CTabHandle cTabH, ITabHandle iTabH, short res)
  2420. ;
  2421.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  2422.         _MakeITable:    OPWORD    $AA39
  2423.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  2424.         IMPORT_CFM_FUNCTION MakeITable
  2425.     ENDIF
  2426.  
  2427. ;
  2428. ; pascal void AddSearch(ColorSearchUPP searchProc)
  2429. ;
  2430.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  2431.         _AddSearch:    OPWORD    $AA3A
  2432.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  2433.         IMPORT_CFM_FUNCTION AddSearch
  2434.     ENDIF
  2435.  
  2436. ;
  2437. ; pascal void AddComp(ColorComplementUPP compProc)
  2438. ;
  2439.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  2440.         _AddComp:    OPWORD    $AA3B
  2441.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  2442.         IMPORT_CFM_FUNCTION AddComp
  2443.     ENDIF
  2444.  
  2445. ;
  2446. ; pascal void DelSearch(ColorSearchUPP searchProc)
  2447. ;
  2448.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  2449.         _DelSearch:    OPWORD    $AA4C
  2450.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  2451.         IMPORT_CFM_FUNCTION DelSearch
  2452.     ENDIF
  2453.  
  2454. ;
  2455. ; pascal void DelComp(ColorComplementUPP compProc)
  2456. ;
  2457.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  2458.         _DelComp:    OPWORD    $AA4D
  2459.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  2460.         IMPORT_CFM_FUNCTION DelComp
  2461.     ENDIF
  2462.  
  2463. ;
  2464. ; pascal void SetClientID(short id)
  2465. ;
  2466.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  2467.         _SetClientID:    OPWORD    $AA3C
  2468.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  2469.         IMPORT_CFM_FUNCTION SetClientID
  2470.     ENDIF
  2471.  
  2472. ;
  2473. ; pascal void ProtectEntry(short index, Boolean protect)
  2474. ;
  2475.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  2476.         _ProtectEntry:    OPWORD    $AA3D
  2477.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  2478.         IMPORT_CFM_FUNCTION ProtectEntry
  2479.     ENDIF
  2480.  
  2481. ;
  2482. ; pascal void ReserveEntry(short index, Boolean reserve)
  2483. ;
  2484.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  2485.         _ReserveEntry:    OPWORD    $AA3E
  2486.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  2487.         IMPORT_CFM_FUNCTION ReserveEntry
  2488.     ENDIF
  2489.  
  2490. ;
  2491. ; pascal void SetEntries(short start, short count, CSpecArray aTable)
  2492. ;
  2493.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  2494.         _SetEntries:    OPWORD    $AA3F
  2495.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  2496.         IMPORT_CFM_FUNCTION SetEntries
  2497.     ENDIF
  2498.  
  2499. ;
  2500. ; pascal void SaveEntries(CTabHandle srcTable, CTabHandle resultTable, ReqListRec *selection)
  2501. ;
  2502.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  2503.         _SaveEntries:    OPWORD    $AA49
  2504.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  2505.         IMPORT_CFM_FUNCTION SaveEntries
  2506.     ENDIF
  2507.  
  2508. ;
  2509. ; pascal void RestoreEntries(CTabHandle srcTable, CTabHandle dstTable, ReqListRec *selection)
  2510. ;
  2511.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  2512.         _RestoreEntries:    OPWORD    $AA4A
  2513.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  2514.         IMPORT_CFM_FUNCTION RestoreEntries
  2515.     ENDIF
  2516.  
  2517. ;
  2518. ; pascal short QDError(void )
  2519. ;
  2520.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  2521.         _QDError:    OPWORD    $AA40
  2522.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  2523.         IMPORT_CFM_FUNCTION QDError
  2524.     ENDIF
  2525.  
  2526. ;
  2527. ; pascal void CopyDeepMask(const BitMap *srcBits, const BitMap *maskBits, const BitMap *dstBits, const Rect *srcRect, const Rect *maskRect, const Rect *dstRect, short mode, RgnHandle maskRgn)
  2528. ;
  2529.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  2530.         _CopyDeepMask:    OPWORD    $AA51
  2531.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  2532.         IMPORT_CFM_FUNCTION CopyDeepMask
  2533.     ENDIF
  2534.  
  2535. ;
  2536. ; pascal void DeviceLoop(RgnHandle drawingRgn, DeviceLoopDrawingUPP drawingProc, long userData, DeviceLoopFlags flags)
  2537. ;
  2538.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  2539.         _DeviceLoop:    OPWORD    $ABCA
  2540.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  2541.         IMPORT_CFM_FUNCTION DeviceLoop
  2542.     ENDIF
  2543.  
  2544.  
  2545. ;
  2546. ; pascal Ptr GetMaskTable(void )
  2547. ;
  2548.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  2549.         ; returns:
  2550.         ;    Ptr             <= A0
  2551.         _GetMaskTable:    OPWORD    $A836
  2552.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  2553.         IMPORT_CFM_FUNCTION GetMaskTable
  2554.     ENDIF
  2555.  
  2556. ;
  2557. ; pascal PatHandle GetPattern(short patternID)
  2558. ;
  2559.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  2560.         _GetPattern:    OPWORD    $A9B8
  2561.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  2562.         IMPORT_CFM_FUNCTION GetPattern
  2563.     ENDIF
  2564.  
  2565. ;
  2566. ; pascal CursHandle GetCursor(short cursorID)
  2567. ;
  2568.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  2569.         _GetCursor:    OPWORD    $A9B9
  2570.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  2571.         IMPORT_CFM_FUNCTION GetCursor
  2572.     ENDIF
  2573.  
  2574. ;
  2575. ; pascal PicHandle GetPicture(short pictureID)
  2576. ;
  2577.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  2578.         _GetPicture:    OPWORD    $A9BC
  2579.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  2580.         IMPORT_CFM_FUNCTION GetPicture
  2581.     ENDIF
  2582.  
  2583. ;
  2584. ; pascal long DeltaPoint(Point ptA, Point ptB)
  2585. ;
  2586.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  2587.         _DeltaPoint:    OPWORD    $A94F
  2588.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  2589.         IMPORT_CFM_FUNCTION DeltaPoint
  2590.     ENDIF
  2591.  
  2592. ;
  2593. ; pascal void ShieldCursor(const Rect *shieldRect, Point offsetPt)
  2594. ;
  2595.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  2596.         _ShieldCursor:    OPWORD    $A855
  2597.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  2598.         IMPORT_CFM_FUNCTION ShieldCursor
  2599.     ENDIF
  2600.  
  2601. ;
  2602. ; pascal void ScreenRes(short *scrnHRes, short *scrnVRes)
  2603. ;
  2604.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  2605.         Macro
  2606.         _ScreenRes
  2607.             move.l              (sp)+,A1
  2608.             move.w              $0102,(A1)
  2609.             move.l              (sp)+,A1
  2610.             move.w              $0104,(A1)
  2611.         EndM
  2612.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  2613.         IMPORT_CFM_FUNCTION ScreenRes
  2614.     ENDIF
  2615.  
  2616.  
  2617.     IF OLDROUTINENAMES THEN
  2618. ;
  2619. ; pascal void DisposPixMap(PixMapHandle pm)
  2620. ;
  2621.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  2622.         _DisposPixMap:    OPWORD    $AA04
  2623.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  2624.         IMPORT_CFM_FUNCTION DisposPixMap
  2625.     ENDIF
  2626.  
  2627. ;
  2628. ; pascal void DisposPixPat(PixPatHandle pp)
  2629. ;
  2630.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  2631.         _DisposPixPat:    OPWORD    $AA08
  2632.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  2633.         IMPORT_CFM_FUNCTION DisposPixPat
  2634.     ENDIF
  2635.  
  2636. ;
  2637. ; pascal void DisposCTable(CTabHandle cTable)
  2638. ;
  2639.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  2640.         _DisposCTable:    OPWORD    $AA24
  2641.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  2642.         IMPORT_CFM_FUNCTION DisposCTable
  2643.     ENDIF
  2644.  
  2645. ;
  2646. ; pascal void DisposCCursor(CCrsrHandle cCrsr)
  2647. ;
  2648.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  2649.         _DisposCCursor:    OPWORD    $AA26
  2650.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  2651.         IMPORT_CFM_FUNCTION DisposCCursor
  2652.     ENDIF
  2653.  
  2654.     IF OLDROUTINELOCATIONS THEN
  2655. ;
  2656. ; pascal void DisposCIcon(CIconHandle theIcon)
  2657. ;
  2658.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  2659.         _DisposCIcon:    OPWORD    $AA25
  2660.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  2661.         IMPORT_CFM_FUNCTION DisposCIcon
  2662.     ENDIF
  2663.  
  2664.     ENDIF    ; OLDROUTINELOCATIONS
  2665. ;
  2666. ; pascal void DisposGDevice(GDHandle gdh)
  2667. ;
  2668.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  2669.         _DisposGDevice:    OPWORD    $AA30
  2670.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  2671.         IMPORT_CFM_FUNCTION DisposGDevice
  2672.     ENDIF
  2673.  
  2674.     IF OLDROUTINELOCATIONS THEN
  2675.     ENDIF    ; OLDROUTINELOCATIONS
  2676.     ENDIF    ; OLDROUTINENAMES
  2677. ;    From ToolUtils.i
  2678. ;
  2679.  
  2680. ;
  2681. ; pascal void PackBits(Ptr *srcPtr, Ptr *dstPtr, short srcBytes)
  2682. ;
  2683.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  2684.         _PackBits:    OPWORD    $A8CF
  2685.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  2686.         IMPORT_CFM_FUNCTION PackBits
  2687.     ENDIF
  2688.  
  2689. ;
  2690. ; pascal void UnpackBits(Ptr *srcPtr, Ptr *dstPtr, short dstBytes)
  2691. ;
  2692.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  2693.         _UnpackBits:    OPWORD    $A8D0
  2694.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  2695.         IMPORT_CFM_FUNCTION UnpackBits
  2696.     ENDIF
  2697.  
  2698.  
  2699. ;    Also from ToolUtils.i
  2700. ;
  2701.  
  2702. ;
  2703. ; pascal Fixed SlopeFromAngle(short angle)
  2704. ;
  2705.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  2706.         _SlopeFromAngle:    OPWORD    $A8BC
  2707.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  2708.         IMPORT_CFM_FUNCTION SlopeFromAngle
  2709.     ENDIF
  2710.  
  2711. ;
  2712. ; pascal short AngleFromSlope(Fixed slope)
  2713. ;
  2714.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  2715.         _AngleFromSlope:    OPWORD    $A8C4
  2716.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  2717.         IMPORT_CFM_FUNCTION AngleFromSlope
  2718.     ENDIF
  2719.  
  2720.  
  2721.  
  2722.  
  2723.  
  2724.  
  2725.  
  2726.  
  2727. ; ----------------------------PICT • Quickdraw Picture----------------------------------
  2728.  
  2729.  
  2730.  
  2731.  
  2732.  
  2733.     ENDIF ; __QUICKDRAW__ 
  2734.  
  2735.